Lines Matching refs:threads

176     thread_t *threads[5];  in mutex_test()  local
178 for (uint i=0; i < countof(threads); i++) { in mutex_test()
179threads[i] = thread_create("mutex tester", &mutex_thread, &m, DEFAULT_PRIORITY, DEFAULT_STACK_SIZE… in mutex_test()
180 thread_resume(threads[i]); in mutex_test()
183 for (uint i=0; i < countof(threads); i++) { in mutex_test()
184 thread_join(threads[i], NULL, INFINITE_TIME); in mutex_test()
197threads[i] = thread_create("mutex timeout tester", &mutex_timeout_thread, (void *)&timeout_mutex, … in mutex_test()
198 thread_resume(threads[i]); in mutex_test()
202threads[i] = thread_create("mutex timeout tester", &mutex_zerotimeout_thread, (void *)&timeout_mut… in mutex_test()
203 thread_resume(threads[i]); in mutex_test()
210 thread_join(threads[i], NULL, INFINITE_TIME); in mutex_test()
256 thread_t *threads[5]; in event_test() local
266threads[0] = thread_create("event signaler", &event_signaler, NULL, DEFAULT_PRIORITY, DEFAULT_STAC… in event_test()
267threads[1] = thread_create("event waiter 0", &event_waiter, (void *)2, DEFAULT_PRIORITY, DEFAULT_S… in event_test()
268threads[2] = thread_create("event waiter 1", &event_waiter, (void *)2, DEFAULT_PRIORITY, DEFAULT_S… in event_test()
269threads[3] = thread_create("event waiter 2", &event_waiter, (void *)2, DEFAULT_PRIORITY, DEFAULT_S… in event_test()
270threads[4] = thread_create("event waiter 3", &event_waiter, (void *)2, DEFAULT_PRIORITY, DEFAULT_S… in event_test()
272 for (uint i = 0; i < countof(threads); i++) in event_test()
273 thread_resume(threads[i]); in event_test()
279 for (uint i = 0; i < countof(threads); i++) in event_test()
280 thread_join(threads[i], NULL, INFINITE_TIME); in event_test()
284threads[0] = thread_create("event signaler", &event_signaler, NULL, DEFAULT_PRIORITY, DEFAULT_STAC… in event_test()
285threads[1] = thread_create("event waiter 0", &event_waiter, (void *)99, DEFAULT_PRIORITY, DEFAULT_… in event_test()
286threads[2] = thread_create("event waiter 1", &event_waiter, (void *)99, DEFAULT_PRIORITY, DEFAULT_… in event_test()
287threads[3] = thread_create("event waiter 2", &event_waiter, (void *)99, DEFAULT_PRIORITY, DEFAULT_… in event_test()
288threads[4] = thread_create("event waiter 3", &event_waiter, (void *)99, DEFAULT_PRIORITY, DEFAULT_… in event_test()
290 for (uint i = 0; i < countof(threads); i++) in event_test()
291 thread_resume(threads[i]); in event_test()
296 for (uint i = 0; i < countof(threads); i++) in event_test()
297 thread_join(threads[i], NULL, INFINITE_TIME); in event_test()
399 thread_t *threads[8]; in atomic_test() local
400threads[0] = thread_create("atomic tester 1", &atomic_tester, (void *)1, LOW_PRIORITY, DEFAULT_STA… in atomic_test()
401threads[1] = thread_create("atomic tester 1", &atomic_tester, (void *)1, LOW_PRIORITY, DEFAULT_STA… in atomic_test()
402threads[2] = thread_create("atomic tester 1", &atomic_tester, (void *)1, LOW_PRIORITY, DEFAULT_STA… in atomic_test()
403threads[3] = thread_create("atomic tester 1", &atomic_tester, (void *)1, LOW_PRIORITY, DEFAULT_STA… in atomic_test()
404threads[4] = thread_create("atomic tester 2", &atomic_tester, (void *)-1, LOW_PRIORITY, DEFAULT_ST… in atomic_test()
405threads[5] = thread_create("atomic tester 2", &atomic_tester, (void *)-1, LOW_PRIORITY, DEFAULT_ST… in atomic_test()
406threads[6] = thread_create("atomic tester 2", &atomic_tester, (void *)-1, LOW_PRIORITY, DEFAULT_ST… in atomic_test()
407threads[7] = thread_create("atomic tester 2", &atomic_tester, (void *)-1, LOW_PRIORITY, DEFAULT_ST… in atomic_test()
410 for (uint i = 0; i < countof(threads); i++) in atomic_test()
411 thread_resume(threads[i]); in atomic_test()
414 for (uint i = 0; i < countof(threads); i++) { in atomic_test()
415 thread_join(threads[i], NULL, INFINITE_TIME); in atomic_test()