Lines Matching refs:tid
41 k_tid_t tid; in ZTEST_USER() local
63 tid = k_thread_create(th, stack, CONFIG_DYNAMIC_THREAD_STACK_SIZE, func, in ZTEST_USER()
67 zassert_not_null(tid); in ZTEST_USER()
69 zassert_ok(k_thread_join(tid, K_MSEC(TIMEOUT_MS))); in ZTEST_USER()
77 static k_tid_t tid[CONFIG_DYNAMIC_THREAD_POOL_SIZE]; in ZTEST() local
107 tid[i] = k_thread_create(&th[i], stack[i], in ZTEST()
115 zassert_ok(k_thread_join(tid[i], K_MSEC(TIMEOUT_MS))); in ZTEST()
129 static k_tid_t tid[MAX_HEAP_STACKS]; in ZTEST() local
153 tid[i] = k_thread_create(&th[i], stack[i], in ZTEST()
161 zassert_ok(k_thread_join(tid[i], K_MSEC(TIMEOUT_MS))); in ZTEST()
216 static k_tid_t tid[2]; in ZTEST() local
241 tid[0] = k_thread_create(&th[0], stack[0], CONFIG_DYNAMIC_THREAD_STACK_SIZE, perm_func, in ZTEST()
243 zassert_not_null(tid[0]); in ZTEST()
246 tid[1] = k_thread_create(&th[1], stack[1], CONFIG_DYNAMIC_THREAD_STACK_SIZE, in ZTEST()
249 zassert_not_null(tid[1]); in ZTEST()
250 k_thread_access_grant(tid[1], &perm_sem); in ZTEST()
251 k_thread_access_grant(tid[1], &stack[1]); in ZTEST()
255 k_thread_start(tid[1]); in ZTEST()
258 zassert_ok(k_thread_join(tid[1], K_MSEC(TIMEOUT_MS))); in ZTEST()
261 zassert_ok(k_thread_join(tid[0], K_MSEC(TIMEOUT_MS))); in ZTEST()