Lines Matching refs:closure
34 const Closure closure = *pClosure; in ThreadPool_start() local
37 ClosureKind kind = closure.mKind; in ThreadPool_start()
38 void *context1 = closure.mContext1; in ThreadPool_start()
39 void *context2 = closure.mContext2; in ThreadPool_start()
40 int parameter1 = closure.mParameter1; in ThreadPool_start()
44 ClosureHandler_ppi handler_ppi = closure.mHandler.mHandler_ppi; in ThreadPool_start()
51 ClosureHandler_ppii handler_ppii = closure.mHandler.mHandler_ppii; in ThreadPool_start()
53 int parameter2 = closure.mParameter2; in ThreadPool_start()
59 ClosureHandler_piipp handler_piipp = closure.mHandler.mHandler_piipp; in ThreadPool_start()
61 int parameter2 = closure.mParameter2; in ThreadPool_start()
62 void *context3 = closure.mContext3; in ThreadPool_start()
255 Closure *closure = (Closure *) malloc(sizeof(Closure)); in ThreadPool_add() local
256 if (NULL == closure) { in ThreadPool_add()
259 closure->mKind = kind; in ThreadPool_add()
262 closure->mHandler.mHandler_ppi = (ClosureHandler_ppi)handler; in ThreadPool_add()
265 closure->mHandler.mHandler_ppii = (ClosureHandler_ppii)handler; in ThreadPool_add()
268 closure->mHandler.mHandler_piipp = (ClosureHandler_piipp)handler; in ThreadPool_add()
274 closure->mContext1 = context1; in ThreadPool_add()
275 closure->mContext2 = context2; in ThreadPool_add()
276 closure->mContext3 = context3; in ThreadPool_add()
277 closure->mParameter1 = parameter1; in ThreadPool_add()
278 closure->mParameter2 = parameter2; in ThreadPool_add()
286 free(closure); in ThreadPool_add()
305 free(closure); in ThreadPool_add()
311 *oldRear = closure; in ThreadPool_add()