Lines Matching refs:func
22 MppThread *mpp_thread_create(MppThreadFunc func, void *ctx, const char *name) in mpp_thread_create() argument
28 thread->func = func; in mpp_thread_create()
66 if (0 == pthread_create(&thread->thd, &attr, thread->func, thread->ctx)) { in mpp_thread_start()
69 mpp_err("thread %p setname %s failed\n", thread->func, thread->name); in mpp_thread_start()
72 thread->name, thread->func, thread->ctx); in mpp_thread_start()
94 …AD_DBG_FUNC, "thread %s %p context %p destroy success\n", thread->name, thread->func, thread->ctx); in mpp_thread_stop()
243 void mpp_thread_init(MppThread *thread, MppThreadFunc func, void *ctx, const char *name) in mpp_thread_init() argument
245 thread->func = func; in mpp_thread_init()
302 MppSThdFunc func; member
391 if (0 == pthread_create(&thd->thd, &attr, (MppThreadFunc)thd->func, &thd->ctx)) { in mpp_sthd_create()
394 mpp_err("%s %p setname failed\n", thd->thd, thd->func); in mpp_sthd_create()
397 thd->name, thd->func, thd->ctx.ctx); in mpp_sthd_create()
474 void mpp_sthd_setup(MppSThd thd, MppSThdFunc func, void *ctx) in mpp_sthd_setup() argument
486 impl->func = func; in mpp_sthd_setup()
488 impl->status = func ? MPP_STHD_READY : MPP_STHD_UNINITED; in mpp_sthd_setup()
687 void mpp_sthd_grp_setup(MppSThdGrp grp, MppSThdFunc func, void *ctx) in mpp_sthd_grp_setup() argument
699 MppSThdStatus next = func ? MPP_STHD_READY : MPP_STHD_UNINITED; in mpp_sthd_grp_setup()
705 thd->func = func; in mpp_sthd_grp_setup()