Searched refs:old_worker (Results 1 – 2 of 2) sorted by relevance
128 cy_rslt_t cy_worker_thread_delete(cy_worker_thread_info_t* old_worker) in cy_worker_thread_delete() argument133 if (old_worker->state != CY_WORKER_THREAD_INVALID) in cy_worker_thread_delete()136 if (old_worker->state == CY_WORKER_THREAD_VALID) in cy_worker_thread_delete()141 old_worker->state = CY_WORKER_THREAD_TERMINATING; in cy_worker_thread_delete()144 result = cy_rtos_queue_put(&old_worker->event_queue, &dispatch_info, 0); in cy_worker_thread_delete()149 old_worker->state = CY_WORKER_THREAD_VALID; in cy_worker_thread_delete()156 if (old_worker->state != CY_WORKER_THREAD_JOIN_COMPLETE) in cy_worker_thread_delete()159 result = cy_rtos_thread_join(&old_worker->thread); in cy_worker_thread_delete()165 old_worker->state = CY_WORKER_THREAD_JOIN_COMPLETE; in cy_worker_thread_delete()168 if (old_worker->state != CY_WORKER_THREAD_INVALID) in cy_worker_thread_delete()[all …]
120 cy_rslt_t cy_worker_thread_delete(cy_worker_thread_info_t* old_worker);