Lines Matching defs:threads
60 /* Number of simultaneous threads. */
236 /* Test normal locks by having several bank accounts and several threads
303 gl_thread_t threads[THREAD_COUNT];
310 /* Spawn the threads. */
313 threads[i] = gl_thread_create (lock_mutator_thread, NULL);
315 /* Wait for the threads to terminate. */
317 gl_thread_join (threads[i]);
323 /* Test read-write locks by having several bank accounts and several threads
324 which shuffle around money between the accounts and several other threads
384 gl_thread_t threads[THREAD_COUNT];
391 /* Spawn the threads. */
395 threads[i] = gl_thread_create (rwlock_mutator_thread, NULL);
397 /* Wait for the threads to terminate. */
399 gl_thread_join (threads[i]);
406 /* Test recursive locks by having several bank accounts and several threads
483 gl_thread_t threads[THREAD_COUNT];
490 /* Spawn the threads. */
493 threads[i] = gl_thread_create (reclock_mutator_thread, NULL);
495 /* Wait for the threads to terminate. */
497 gl_thread_join (threads[i]);
503 /* Test once-only execution by having several threads attempt to grab a
568 gl_thread_t threads[THREAD_COUNT];
587 /* Spawn the threads. */
589 threads[i] = gl_thread_create (once_contender_thread, (void *) (long) i);
635 /* Signal all threads simultaneously. */
644 /* Wait for the threads to terminate. */
646 gl_thread_join (threads[i]);