projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Tweak test_hashtab_thrash test to allow the critical threads to execute.
[asterisk/asterisk.git]
/
tests
/
test_hashtab_thrash.c
diff --git
a/tests/test_hashtab_thrash.c
b/tests/test_hashtab_thrash.c
index
931cc43
..
619090a
100644
(file)
--- a/
tests/test_hashtab_thrash.c
+++ b/
tests/test_hashtab_thrash.c
@@
-208,7
+208,7
@@
static void *hash_test_count(void *d)
if (last_count == count) {
/* Allow other threads to run. */
- sched_yield();
+ usleep(1);
} else if (last_count > count) {
/* Make sure the hashtable never shrinks */
return "hashtab unexpectedly shrank";