Home
last modified time | relevance | path

Searched refs:thread_idx (Results 1 – 11 of 11) sorted by relevance

/Zephyr-Core-3.5.0/arch/posix/core/
Dthread.c49 thread_status->thread_idx = posix_new_thread((void *)thread_status); in arch_new_thread()
63 int thread_idx; in z_impl_k_thread_abort() local
69 thread_idx = tstatus->thread_idx; in z_impl_k_thread_abort()
81 thread_idx); in z_impl_k_thread_abort()
83 posix_abort_thread(thread_idx); in z_impl_k_thread_abort()
91 posix_arch_get_unique_thread_id(thread_idx), in z_impl_k_thread_abort()
92 thread_idx); in z_impl_k_thread_abort()
95 posix_abort_thread(thread_idx); in z_impl_k_thread_abort()
100 posix_arch_get_unique_thread_id(thread_idx), in z_impl_k_thread_abort()
101 thread_idx); in z_impl_k_thread_abort()
Dposix_core.c236 ptr->thread_idx, in posix_cleanup_handler()
255 int thread_idx = (intptr_t)arg; in posix_thread_starter() local
258 threads_table[thread_idx].thead_cnt, in posix_thread_starter()
259 thread_idx, in posix_thread_starter()
281 threads_table[thread_idx].thead_cnt, in posix_thread_starter()
282 thread_idx, in posix_thread_starter()
289 posix_wait_until_allowed(thread_idx); in posix_thread_starter()
291 posix_thread_status_t *ptr = threads_table[thread_idx].t_status; in posix_thread_starter()
301 threads_table[thread_idx].thead_cnt, in posix_thread_starter()
302 thread_idx, in posix_thread_starter()
[all …]
Dposix_core_nsi.c51 void posix_abort_thread(int thread_idx) in posix_abort_thread() argument
53 nct_abort_thread(te_state, thread_idx); in posix_abort_thread()
56 int posix_arch_get_unique_thread_id(int thread_idx) in posix_arch_get_unique_thread_id() argument
58 return nct_get_unique_thread_id(te_state, thread_idx); in posix_arch_get_unique_thread_id()
Dswap.c64 posix_swap(ready_thread_ptr->thread_idx, in arch_swap()
65 this_thread_ptr->thread_idx); in arch_swap()
103 posix_main_thread_start(ready_thread_ptr->thread_idx); in arch_switch_to_main_thread()
/Zephyr-Core-3.5.0/scripts/native_simulator/common/src/
Dnct.c95 int thread_idx; /* Index of this element in the threads_table*/ member
308 element->thread_idx, in nct_cleanup_handler()
328 int thread_idx = tt_el->thread_idx; in nct_thread_starter() local
332 thread_idx, in nct_thread_starter()
355 thread_idx, in nct_thread_starter()
362 nct_wait_until_allowed(this, thread_idx); in nct_thread_starter()
373 thread_idx, in nct_thread_starter()
472 tt_el->thread_idx = t_slot; in nct_new_thread()
605 void nct_abort_thread(void *this_arg, int thread_idx) in nct_abort_thread() argument
608 struct threads_table_el *tt_el = ttable_get_element(this, thread_idx); in nct_abort_thread()
[all …]
/Zephyr-Core-3.5.0/arch/posix/include/
Dposix_core.h22 int thread_idx; member
48 void posix_abort_thread(int thread_idx);
49 int posix_arch_get_unique_thread_id(int thread_idx);
/Zephyr-Core-3.5.0/tests/kernel/sched/schedule_api/src/
Dtest_sched_timeslice_reset.c37 static int thread_idx; variable
57 if (thread_idx == 0) { in thread_time_slice()
85 thread_idx, t, expected_slice_min, expected_slice_max); in thread_time_slice()
92 thread_idx = (thread_idx + 1) % NUM_THREAD; in thread_time_slice()
134 thread_idx = 0; in ZTEST()
Dtest_priority_scheduling.c30 static int thread_idx; variable
46 zassert_true((idx == thread_idx)); in thread_tslice()
47 thread_idx = (thread_idx + 1) % (NUM_THREAD); in thread_tslice()
Dtest_slice_scheduling.c37 static int thread_idx; variable
66 (idx == thread_idx)), NULL); in thread_tslice()
67 thread_idx = (thread_idx + 1) % (NUM_THREAD); in thread_tslice()
96 thread_idx = 0; in ZTEST()
/Zephyr-Core-3.5.0/scripts/native_simulator/common/src/include/
Dnct_if.h26 void nct_abort_thread(void *this, int thread_idx);
27 int nct_get_unique_thread_id(void *this, int thread_idx);
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/grp/os_mgmt/src/
Dos_mgmt.c76 int thread_idx; member
257 iterator_ctx->thread_idx, thread) && in os_mgmt_taskstat_encode_one()
261 zcbor_uint32_put(iterator_ctx->zse, iterator_ctx->thread_idx) && in os_mgmt_taskstat_encode_one()
269 ++iterator_ctx->thread_idx; in os_mgmt_taskstat_encode_one()
281 .thread_idx = 0, in os_mgmt_taskstat_read()