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()
179 …threads[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()
197 …threads[i] = thread_create("mutex timeout tester", &mutex_timeout_thread, (void *)&timeout_mutex, … in mutex_test()
198 thread_resume(threads[i]); in mutex_test()
202 …threads[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
266 …threads[0] = thread_create("event signaler", &event_signaler, NULL, DEFAULT_PRIORITY, DEFAULT_STAC… in event_test()
267 …threads[1] = thread_create("event waiter 0", &event_waiter, (void *)2, DEFAULT_PRIORITY, DEFAULT_S… in event_test()
268 …threads[2] = thread_create("event waiter 1", &event_waiter, (void *)2, DEFAULT_PRIORITY, DEFAULT_S… in event_test()
269 …threads[3] = thread_create("event waiter 2", &event_waiter, (void *)2, DEFAULT_PRIORITY, DEFAULT_S… in event_test()
270 …threads[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()
284 …threads[0] = thread_create("event signaler", &event_signaler, NULL, DEFAULT_PRIORITY, DEFAULT_STAC… in event_test()
285 …threads[1] = thread_create("event waiter 0", &event_waiter, (void *)99, DEFAULT_PRIORITY, DEFAULT_… in event_test()
286 …threads[2] = thread_create("event waiter 1", &event_waiter, (void *)99, DEFAULT_PRIORITY, DEFAULT_… in event_test()
287 …threads[3] = thread_create("event waiter 2", &event_waiter, (void *)99, DEFAULT_PRIORITY, DEFAULT_… in event_test()
288 …threads[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
400 …threads[0] = thread_create("atomic tester 1", &atomic_tester, (void *)1, LOW_PRIORITY, DEFAULT_STA… in atomic_test()
401 …threads[1] = thread_create("atomic tester 1", &atomic_tester, (void *)1, LOW_PRIORITY, DEFAULT_STA… in atomic_test()
402 …threads[2] = thread_create("atomic tester 1", &atomic_tester, (void *)1, LOW_PRIORITY, DEFAULT_STA… in atomic_test()
403 …threads[3] = thread_create("atomic tester 1", &atomic_tester, (void *)1, LOW_PRIORITY, DEFAULT_STA… in atomic_test()
404 …threads[4] = thread_create("atomic tester 2", &atomic_tester, (void *)-1, LOW_PRIORITY, DEFAULT_ST… in atomic_test()
405 …threads[5] = thread_create("atomic tester 2", &atomic_tester, (void *)-1, LOW_PRIORITY, DEFAULT_ST… in atomic_test()
406 …threads[6] = thread_create("atomic tester 2", &atomic_tester, (void *)-1, LOW_PRIORITY, DEFAULT_ST… in atomic_test()
407 …threads[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()