Searched refs:p_thread_pool (Results 1 – 2 of 2) sorted by relevance
58 cl_thread_pool_t *p_thread_pool = (cl_thread_pool_t *) context; in thread_pool_routine() local61 pthread_mutex_lock(&p_thread_pool->mutex); in thread_pool_routine()62 pthread_cleanup_push(cleanup_mutex, p_thread_pool); in thread_pool_routine()63 while (!p_thread_pool->events) in thread_pool_routine()64 pthread_cond_wait(&p_thread_pool->cond, in thread_pool_routine()65 &p_thread_pool->mutex); in thread_pool_routine()66 p_thread_pool->events--; in thread_pool_routine()69 (*p_thread_pool->pfn_callback) (p_thread_pool->context); in thread_pool_routine()75 cl_status_t cl_thread_pool_init(IN cl_thread_pool_t * const p_thread_pool, in cl_thread_pool_init() argument82 CL_ASSERT(p_thread_pool); in cl_thread_pool_init()[all …]
141 cl_thread_pool_init(IN cl_thread_pool_t * const p_thread_pool,194 void cl_thread_pool_destroy(IN cl_thread_pool_t * const p_thread_pool);226 cl_status_t cl_thread_pool_signal(IN cl_thread_pool_t * const p_thread_pool);