Home
last modified time | relevance | path

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

/ThreadX-v6.2.1/ports/linux/gnu/src/
Dtx_thread_schedule.c214 pthread_t thread_id; in _tx_thread_delete_port_completion() local
217 thread_id = thread_ptr -> tx_thread_linux_thread_id; in _tx_thread_delete_port_completion()
224 linux_status = pthread_cancel(thread_id); in _tx_thread_delete_port_completion()
229 _tx_linux_thread_resume(thread_id); in _tx_thread_delete_port_completion()
233 pthread_join(thread_id, NULL); in _tx_thread_delete_port_completion()
242 pthread_t thread_id; in _tx_thread_reset_port_completion() local
245 thread_id = thread_ptr -> tx_thread_linux_thread_id; in _tx_thread_reset_port_completion()
252 linux_status = pthread_cancel(thread_id); in _tx_thread_reset_port_completion()
257 _tx_linux_thread_resume(thread_id); in _tx_thread_reset_port_completion()
261 pthread_join(thread_id, NULL); in _tx_thread_reset_port_completion()
Dtx_thread_system_return.c90 pthread_t thread_id; in _tx_thread_system_return() local
103 thread_id = pthread_self(); in _tx_thread_system_return()
111 …((!temp_thread_ptr) || (!pthread_equal(temp_thread_ptr -> tx_thread_linux_thread_id, thread_id)))) in _tx_thread_system_return()
183 …((!temp_thread_ptr) || (!pthread_equal(temp_thread_ptr -> tx_thread_linux_thread_id, thread_id)))) in _tx_thread_system_return()
Dtx_thread_interrupt_control.c98 pthread_t thread_id; in _tx_thread_interrupt_control() local
106 thread_id = pthread_self(); in _tx_thread_interrupt_control()
114 ((!thread_ptr) || (!pthread_equal(thread_ptr -> tx_thread_linux_thread_id, thread_id)))) in _tx_thread_interrupt_control()
Dtx_initialize_low_level.c67 void _tx_linux_thread_suspend(pthread_t thread_id);
407 void _tx_linux_thread_suspend(pthread_t thread_id) in _tx_linux_thread_suspend() argument
412 pthread_kill(thread_id, SUSPEND_SIG); in _tx_linux_thread_suspend()
416 if(pthread_equal(thread_id, _tx_linux_timer_id)) in _tx_linux_thread_suspend()
422 void _tx_linux_thread_resume(pthread_t thread_id) in _tx_linux_thread_resume() argument
427 pthread_kill(thread_id, RESUME_SIG); in _tx_linux_thread_resume()
/ThreadX-v6.2.1/utility/benchmarks/thread_metric/threadx_example/
Dtm_porting_layer_threadx.c131 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void)) in tm_thread_create() argument
137 tm_thread_entry_functions[thread_id] = (void *) entry_function; in tm_thread_create()
140 …atus = tx_thread_create(&tm_thread_array[thread_id], "Thread-Metric test", tm_thread_entry, (ULON… in tm_thread_create()
141 … &tm_thread_stack_area[thread_id*TM_THREADX_THREAD_STACK_SIZE], TM_THREADX_THREAD_STACK_SIZE, in tm_thread_create()
154 int tm_thread_resume(int thread_id) in tm_thread_resume() argument
161 status = tx_thread_resume(&tm_thread_array[thread_id]); in tm_thread_resume()
173 int tm_thread_suspend(int thread_id) in tm_thread_suspend() argument
180 status = tx_thread_suspend(&tm_thread_array[thread_id]); in tm_thread_suspend()
/ThreadX-v6.2.1/ports_smp/linux/gnu/src/
Dtx_thread_smp_core_get.c79 pthread_t thread_id; in _tx_thread_smp_core_get() local
89 thread_id = pthread_self(); in _tx_thread_smp_core_get()
96 if (_tx_linux_virtual_cores[i].tx_thread_smp_core_mapping_linux_thread_id == thread_id) in _tx_thread_smp_core_get()
Dtx_thread_smp_current_state_get.c80 pthread_t thread_id; in _tx_thread_smp_current_state_get() local
90 thread_id = pthread_self(); in _tx_thread_smp_current_state_get()
97 if (_tx_linux_virtual_cores[i].tx_thread_smp_core_mapping_linux_thread_id == thread_id) in _tx_thread_smp_current_state_get()
Dtx_thread_smp_current_thread_get.c78 pthread_t thread_id; in _tx_thread_smp_current_thread_get() local
89 thread_id = pthread_self(); in _tx_thread_smp_current_thread_get()
96 if (_tx_linux_virtual_cores[i].tx_thread_smp_core_mapping_linux_thread_id == thread_id) in _tx_thread_smp_current_thread_get()
Dtx_thread_schedule.c477 pthread_t thread_id; in _tx_thread_delete_port_completion() local
478 thread_id = thread_ptr -> tx_thread_linux_thread_id; in _tx_thread_delete_port_completion()
483 linux_status = pthread_cancel(thread_id); in _tx_thread_delete_port_completion()
488 _tx_linux_thread_resume(thread_id); in _tx_thread_delete_port_completion()
492 pthread_join(thread_id, NULL); in _tx_thread_delete_port_completion()
501 pthread_t thread_id; in _tx_thread_reset_port_completion() local
502 thread_id = thread_ptr -> tx_thread_linux_thread_id; in _tx_thread_reset_port_completion()
507 linux_status = pthread_cancel(thread_id); in _tx_thread_reset_port_completion()
512 _tx_linux_thread_resume(thread_id); in _tx_thread_reset_port_completion()
516 pthread_join(thread_id, NULL); in _tx_thread_reset_port_completion()
Dtx_thread_system_return.c90 pthread_t thread_id; in _tx_thread_system_return() local
107 thread_id = pthread_self(); in _tx_thread_system_return()
115 … ((!temp_thread_ptr) || (!pthread_equal(temp_thread_ptr -> tx_thread_linux_thread_id, thread_id)))) in _tx_thread_system_return()
218 … ((!temp_thread_ptr) || (!pthread_equal(temp_thread_ptr -> tx_thread_linux_thread_id, thread_id)))) in _tx_thread_system_return()
Dtx_thread_interrupt_control.c99 pthread_t thread_id; in _tx_thread_interrupt_control() local
125 thread_id = pthread_self(); in _tx_thread_interrupt_control()
136 ((!thread_ptr) || (!pthread_equal(thread_ptr -> tx_thread_linux_thread_id, thread_id)))) in _tx_thread_interrupt_control()
Dtx_initialize_low_level.c399 void _tx_linux_thread_suspend(pthread_t thread_id) in _tx_linux_thread_suspend() argument
404 pthread_kill(thread_id, SUSPEND_SIG); in _tx_linux_thread_suspend()
408 if(pthread_equal(thread_id, _tx_linux_timer_id)) in _tx_linux_thread_suspend()
414 void _tx_linux_thread_resume(pthread_t thread_id) in _tx_linux_thread_resume() argument
419 pthread_kill(thread_id, RESUME_SIG); in _tx_linux_thread_resume()
/ThreadX-v6.2.1/utility/benchmarks/thread_metric/
Dtm_porting_layer_template.c40 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void)) in tm_thread_create() argument
48 int tm_thread_resume(int thread_id) in tm_thread_resume() argument
56 int tm_thread_suspend(int thread_id) in tm_thread_suspend() argument
Dtm_api.h80 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void));
81 int tm_thread_resume(int thread_id);
82 int tm_thread_suspend(int thread_id);
Dthread_metric_readme.txt131 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void));
138 int tm_thread_resume(int thread_id);
141 thread_id. If successful, a TM_SUCCESS is returned.
143 int tm_thread_suspend(int thread_id);
146 thread_id. If successful, a TM_SUCCESS is returned.
/ThreadX-v6.2.1/utility/rtos_compatibility_layers/posix/
Dpx_pth_kill.c82 int pthread_kill(ALIGN_TYPE thread_id, int sig) in pthread_kill() argument
112 target_thread = (POSIX_TCB *) thread_id; in pthread_kill()
Dreadme_threadx_posix.txt176 INT pthread_kill(ALIGN_TYPE thread_id, int sig)
/ThreadX-v6.2.1/ports/linux/gnu/inc/
Dtx_port.h564 void _tx_linux_thread_suspend(pthread_t thread_id);
565 void _tx_linux_thread_resume(pthread_t thread_id);
/ThreadX-v6.2.1/ports_smp/linux/gnu/inc/
Dtx_port.h655 void _tx_linux_thread_suspend(pthread_t thread_id);
656 void _tx_linux_thread_resume(pthread_t thread_id);