Home
last modified time | relevance | path

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

/ThreadX-v6.4.1/ports/linux/gnu/src/
Dtx_thread_schedule.c213 pthread_t thread_id; in _tx_thread_delete_port_completion() local
216 thread_id = thread_ptr -> tx_thread_linux_thread_id; in _tx_thread_delete_port_completion()
223 linux_status = pthread_cancel(thread_id); in _tx_thread_delete_port_completion()
228 _tx_linux_thread_resume(thread_id); in _tx_thread_delete_port_completion()
232 pthread_join(thread_id, NULL); in _tx_thread_delete_port_completion()
241 pthread_t thread_id; in _tx_thread_reset_port_completion() local
244 thread_id = thread_ptr -> tx_thread_linux_thread_id; in _tx_thread_reset_port_completion()
251 linux_status = pthread_cancel(thread_id); in _tx_thread_reset_port_completion()
256 _tx_linux_thread_resume(thread_id); in _tx_thread_reset_port_completion()
260 pthread_join(thread_id, NULL); in _tx_thread_reset_port_completion()
Dtx_thread_system_return.c89 pthread_t thread_id; in _tx_thread_system_return() local
102 thread_id = pthread_self(); in _tx_thread_system_return()
110 …((!temp_thread_ptr) || (!pthread_equal(temp_thread_ptr -> tx_thread_linux_thread_id, thread_id)))) in _tx_thread_system_return()
182 …((!temp_thread_ptr) || (!pthread_equal(temp_thread_ptr -> tx_thread_linux_thread_id, thread_id)))) in _tx_thread_system_return()
Dtx_thread_interrupt_control.c97 pthread_t thread_id; in _tx_thread_interrupt_control() local
105 thread_id = pthread_self(); in _tx_thread_interrupt_control()
113 ((!thread_ptr) || (!pthread_equal(thread_ptr -> tx_thread_linux_thread_id, thread_id)))) in _tx_thread_interrupt_control()
Dtx_initialize_low_level.c66 void _tx_linux_thread_suspend(pthread_t thread_id);
406 void _tx_linux_thread_suspend(pthread_t thread_id) in _tx_linux_thread_suspend() argument
411 pthread_kill(thread_id, SUSPEND_SIG); in _tx_linux_thread_suspend()
415 if(pthread_equal(thread_id, _tx_linux_timer_id)) in _tx_linux_thread_suspend()
421 void _tx_linux_thread_resume(pthread_t thread_id) in _tx_linux_thread_resume() argument
426 pthread_kill(thread_id, RESUME_SIG); in _tx_linux_thread_resume()
/ThreadX-v6.4.1/utility/benchmarks/thread_metric/threadx_example/
Dtm_porting_layer_threadx.c130 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void)) in tm_thread_create() argument
136 tm_thread_entry_functions[thread_id] = (void *) entry_function; in tm_thread_create()
139 …atus = tx_thread_create(&tm_thread_array[thread_id], "Thread-Metric test", tm_thread_entry, (ULON… in tm_thread_create()
140 … &tm_thread_stack_area[thread_id*TM_THREADX_THREAD_STACK_SIZE], TM_THREADX_THREAD_STACK_SIZE, in tm_thread_create()
153 int tm_thread_resume(int thread_id) in tm_thread_resume() argument
160 status = tx_thread_resume(&tm_thread_array[thread_id]); in tm_thread_resume()
172 int tm_thread_suspend(int thread_id) in tm_thread_suspend() argument
179 status = tx_thread_suspend(&tm_thread_array[thread_id]); in tm_thread_suspend()
/ThreadX-v6.4.1/ports_smp/linux/gnu/src/
Dtx_thread_smp_core_get.c78 pthread_t thread_id; in _tx_thread_smp_core_get() local
88 thread_id = pthread_self(); in _tx_thread_smp_core_get()
95 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.c79 pthread_t thread_id; in _tx_thread_smp_current_state_get() local
89 thread_id = pthread_self(); in _tx_thread_smp_current_state_get()
96 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.c77 pthread_t thread_id; in _tx_thread_smp_current_thread_get() local
88 thread_id = pthread_self(); in _tx_thread_smp_current_thread_get()
95 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.c476 pthread_t thread_id; in _tx_thread_delete_port_completion() local
477 thread_id = thread_ptr -> tx_thread_linux_thread_id; in _tx_thread_delete_port_completion()
482 linux_status = pthread_cancel(thread_id); in _tx_thread_delete_port_completion()
487 _tx_linux_thread_resume(thread_id); in _tx_thread_delete_port_completion()
491 pthread_join(thread_id, NULL); in _tx_thread_delete_port_completion()
500 pthread_t thread_id; in _tx_thread_reset_port_completion() local
501 thread_id = thread_ptr -> tx_thread_linux_thread_id; in _tx_thread_reset_port_completion()
506 linux_status = pthread_cancel(thread_id); in _tx_thread_reset_port_completion()
511 _tx_linux_thread_resume(thread_id); in _tx_thread_reset_port_completion()
515 pthread_join(thread_id, NULL); in _tx_thread_reset_port_completion()
Dtx_thread_system_return.c89 pthread_t thread_id; in _tx_thread_system_return() local
106 thread_id = pthread_self(); in _tx_thread_system_return()
114 … ((!temp_thread_ptr) || (!pthread_equal(temp_thread_ptr -> tx_thread_linux_thread_id, thread_id)))) in _tx_thread_system_return()
217 … ((!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
124 thread_id = pthread_self(); in _tx_thread_interrupt_control()
135 ((!thread_ptr) || (!pthread_equal(thread_ptr -> tx_thread_linux_thread_id, thread_id)))) in _tx_thread_interrupt_control()
Dtx_initialize_low_level.c398 void _tx_linux_thread_suspend(pthread_t thread_id) in _tx_linux_thread_suspend() argument
403 pthread_kill(thread_id, SUSPEND_SIG); in _tx_linux_thread_suspend()
407 if(pthread_equal(thread_id, _tx_linux_timer_id)) in _tx_linux_thread_suspend()
413 void _tx_linux_thread_resume(pthread_t thread_id) in _tx_linux_thread_resume() argument
418 pthread_kill(thread_id, RESUME_SIG); in _tx_linux_thread_resume()
/ThreadX-v6.4.1/utility/benchmarks/thread_metric/
Dtm_porting_layer_template.c39 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void)) in tm_thread_create() argument
47 int tm_thread_resume(int thread_id) in tm_thread_resume() argument
55 int tm_thread_suspend(int thread_id) in tm_thread_suspend() argument
Dtm_api.h79 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void));
80 int tm_thread_resume(int thread_id);
81 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.4.1/utility/rtos_compatibility_layers/posix/
Dpx_pth_kill.c81 int pthread_kill(ALIGN_TYPE thread_id, int sig) in pthread_kill() argument
111 target_thread = (POSIX_TCB *) thread_id; in pthread_kill()
Dreadme_threadx_posix.txt176 INT pthread_kill(ALIGN_TYPE thread_id, int sig)
/ThreadX-v6.4.1/ports/linux/gnu/inc/
Dtx_port.h566 void _tx_linux_thread_suspend(pthread_t thread_id);
567 void _tx_linux_thread_resume(pthread_t thread_id);
/ThreadX-v6.4.1/ports_smp/linux/gnu/inc/
Dtx_port.h654 void _tx_linux_thread_suspend(pthread_t thread_id);
655 void _tx_linux_thread_resume(pthread_t thread_id);