Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8f59d991
Commit
8f59d991
authored
Dec 04, 2006
by
guilhem@gbichot3.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around slow my_atomic-t test on hpux11: decrease number of
iterations on this platform
parent
c610c271
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
unittest/mysys/my_atomic-t.c
unittest/mysys/my_atomic-t.c
+9
-3
No files found.
unittest/mysys/my_atomic-t.c
View file @
8f59d991
...
...
@@ -174,9 +174,15 @@ int main()
pthread_cond_init
(
&
cond
,
0
);
my_atomic_rwlock_init
(
&
rwl
);
test_atomic
(
"my_atomic_add32"
,
test_atomic_add_handler
,
100
,
10000
);
test_atomic
(
"my_atomic_swap32"
,
test_atomic_swap_handler
,
100
,
10000
);
test_atomic
(
"my_atomic_cas32"
,
test_atomic_cas_handler
,
100
,
10000
);
#ifdef HPUX11
#define CYCLES 1000
#else
#define CYCLES 10000
#endif
#define THREADS 100
test_atomic
(
"my_atomic_add32"
,
test_atomic_add_handler
,
THREADS
,
CYCLES
);
test_atomic
(
"my_atomic_swap32"
,
test_atomic_swap_handler
,
THREADS
,
CYCLES
);
test_atomic
(
"my_atomic_cas32"
,
test_atomic_cas_handler
,
THREADS
,
CYCLES
);
/*
workaround until we know why it crashes randomly on some machine
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment