Home
last modified time | relevance | path

Searched refs:p_thread_pool (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/ofed/opensm/complib/
H A Dcl_threadpool.c58 cl_thread_pool_t *p_thread_pool = (cl_thread_pool_t *) context; in thread_pool_routine() local
61 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() argument
82 CL_ASSERT(p_thread_pool); in cl_thread_pool_init()
[all …]
/freebsd/contrib/ofed/opensm/include/complib/
H A Dcl_threadpool.h141 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);