Tweak test_hashtab_thrash test to allow the critical threads to execute.
[asterisk/asterisk.git] / tests / test_hashtab_thrash.c
index 931cc43..619090a 100644 (file)
@@ -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";