Home
last modified time | relevance | path

Searched refs:thread_id (Results 1 – 12 of 12) sorted by relevance

/tests/benchmarks/thread_metric/src/
A Dtm_porting_layer_zephyr.c64 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void *, void *, void *)) in tm_thread_create() argument
68 tid = k_thread_create(&test_thread[thread_id], test_stack[thread_id], in tm_thread_create()
74 k_thread_suspend(&test_thread[thread_id]); in tm_thread_create()
75 k_wakeup(&test_thread[thread_id]); in tm_thread_create()
77 return (tid == &test_thread[thread_id]) ? TM_SUCCESS : TM_ERROR; in tm_thread_create()
84 int tm_thread_resume(int thread_id) in tm_thread_resume() argument
86 k_thread_resume(&test_thread[thread_id]); in tm_thread_resume()
95 int tm_thread_suspend(int thread_id) in tm_thread_suspend() argument
97 k_thread_suspend(&test_thread[thread_id]); in tm_thread_suspend()
A Dtm_api.h80 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void *, void *, void *));
81 int tm_thread_resume(int thread_id);
82 int tm_thread_suspend(int thread_id);
/tests/kernel/sched/wraparound/src/
A Dmain.c9 static k_tid_t thread_id; variable
13 k_wakeup(thread_id); in alarm_callback()
30 thread_id = k_current_get(); in ZTEST()
/tests/subsys/portability/cmsis_rtos_v1/src/
A Dsignal.c39 void test_multiple_signal_flags(void const *thread_id) in test_multiple_signal_flags() argument
48 signals = osSignalSet((osThreadId)thread_id, signal_each_flag); in test_multiple_signal_flags()
53 signals = osSignalClear((osThreadId)thread_id, SIGNAL_ALL_FLAGS); in test_multiple_signal_flags()
57 signals = osSignalSet((osThreadId)thread_id, SIGNAL_ALL_FLAGS); in test_multiple_signal_flags()
61 signals = osSignalClear((osThreadId)thread_id, SIGNAL_ALL_FLAGS); in test_multiple_signal_flags()
65 signals = osSignalSet((osThreadId)thread_id, SIGNAL_OUTOFLIMIT_FLAG); in test_multiple_signal_flags()
176 void test_signal_from_isr(void const *thread_id) in test_signal_from_isr() argument
179 irq_offload(offload_function, (const void *)thread_id); in test_signal_from_isr()
/tests/lib/multi_heap/src/
A Dtest_mheap_concept.c79 int thread_id = POINTER_TO_INT(p1); in tmheap_threadsafe_handler() local
81 threadsafe_pool_blocks[thread_id] = k_malloc(THREADSAFE_BLOCK_SIZE); in tmheap_threadsafe_handler()
83 zassert_not_null(threadsafe_pool_blocks[thread_id], "memory is not allocated"); in tmheap_threadsafe_handler()
/tests/subsys/portability/cmsis_rtos_v2/src/
A Dthread_apis.c42 osThreadId_t thread_id; in thread1() local
46 thread_id = osThreadGetId(); in thread1()
47 zassert_true(thread_id != NULL, "Failed getting Thread ID"); in thread1()
49 name = osThreadGetName(thread_id); in thread1()
A Dthread_flags.c142 void test_thread_flags_from_isr(void *thread_id) in test_thread_flags_from_isr() argument
/tests/subsys/logging/log_output/
A Dtestcase.yaml54 logging.output.thread_id:
/tests/benchmarks/thread_metric/
A Dthread_metric_readme.txt165 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void));
172 int tm_thread_resume(int thread_id);
175 thread_id. If successful, a TM_SUCCESS is returned.
177 int tm_thread_suspend(int thread_id);
180 thread_id. If successful, a TM_SUCCESS is returned.
/tests/kernel/smp/src/
A Dmain.c653 k_tid_t thread_id; in ZTEST() local
666 thread_id = k_thread_create(&t2, t2_stack, T2_STACK_SIZE, in ZTEST()
674 k_thread_abort(thread_id); in ZTEST()
675 k_thread_join(thread_id, K_FOREVER); in ZTEST()
/tests/kernel/threads/thread_apis/src/
A Dmain.c230 static void umode_entry(void *thread_id, void *p2, void *p3) in umode_entry() argument
236 (k_current_get() == (k_tid_t)thread_id)) { in umode_entry()
/tests/kernel/workq/work/src/
A Dmain.c140 if (k_current_get() == coophi_queue.thread_id) { in counter_handler()
142 } else if (k_current_get() == k_sys_work_q.thread_id) { in counter_handler()
144 } else if (k_current_get() == cooplo_queue.thread_id) { in counter_handler()
146 } else if (k_current_get() == preempt_queue.thread_id) { in counter_handler()

Completed in 34 milliseconds