Lines Matching refs:thread

120     TX_THREAD thread;  member
129 cy_rslt_t cy_rtos_thread_create(cy_thread_t* thread, cy_thread_entry_fn_t entry_function, in cy_rtos_thread_create() argument
134 if ((thread == NULL) || (stack_size < CY_RTOS_MIN_STACK_SIZE)) in cy_rtos_thread_create()
170 *thread = (cy_thread_t)wrapper_ptr; in cy_rtos_thread_create()
173 cy_rtos_error_t tx_rslt = tx_thread_create(*thread, (CHAR*)name, entry_function, arg, stack, in cy_rtos_thread_create()
201 cy_rslt_t cy_rtos_thread_terminate(cy_thread_t* thread) in cy_rtos_thread_terminate() argument
203 if (thread == NULL) in cy_rtos_thread_terminate()
208 return convert_error(tx_thread_terminate(*thread)); in cy_rtos_thread_terminate()
215 cy_rslt_t cy_rtos_thread_is_running(cy_thread_t* thread, bool* running) in cy_rtos_thread_is_running() argument
217 if ((thread == NULL) || (running == NULL)) in cy_rtos_thread_is_running()
223 *running = (*thread == tx_thread_identify()); in cy_rtos_thread_is_running()
231 cy_rslt_t cy_rtos_thread_get_state(cy_thread_t* thread, cy_thread_state_t* state) in cy_rtos_thread_get_state() argument
233 if ((thread == NULL) || (state == NULL)) in cy_rtos_thread_get_state()
239 cy_rslt_t rslt = cy_rtos_is_thread_running(thread, &running); in cy_rtos_thread_get_state()
251 cy_rtos_error_t tx_rslt = tx_thread_info_get(*thread, TX_NULL, &thread_state, TX_NULL, TX_NULL, in cy_rtos_thread_get_state()
295 cy_rslt_t cy_rtos_thread_join(cy_thread_t* thread) in cy_rtos_thread_join() argument
297 if (thread == NULL) in cy_rtos_thread_join()
308 cy_rtos_error_t tx_rslt = tx_thread_info_get(*thread, TX_NULL, &thread_state, TX_NULL, TX_NULL, in cy_rtos_thread_join()
325 tx_rslt = tx_thread_info_get(*thread, TX_NULL, &thread_state, TX_NULL, TX_NULL, TX_NULL, in cy_rtos_thread_join()
334 tx_rslt = tx_thread_delete(*thread); in cy_rtos_thread_join()
341 cy_thread_wrapper_t* wrapper_ptr = (cy_thread_wrapper_t*)(*thread); in cy_rtos_thread_join()
360 cy_rslt_t cy_rtos_thread_get_handle(cy_thread_t* thread) in cy_rtos_thread_get_handle() argument
362 if (thread == NULL) in cy_rtos_thread_get_handle()
367 *thread = tx_thread_identify(); in cy_rtos_thread_get_handle()
399 cy_rslt_t cy_rtos_thread_set_notification(cy_thread_t* thread) in cy_rtos_thread_set_notification() argument
401 if (thread == NULL) in cy_rtos_thread_set_notification()
408 return convert_error(tx_thread_wait_abort(*thread)); in cy_rtos_thread_set_notification()
415 cy_rslt_t cy_rtos_thread_get_name(cy_thread_t* thread, const char** thread_name) in cy_rtos_thread_get_name() argument
418 cy_rtos_error_t tx_rslt = tx_thread_info_get(*thread, &temp_name, TX_NULL, TX_NULL, TX_NULL, in cy_rtos_thread_get_name()