Lines Matching defs:thr
29 int ffrt_thread_create(ffrt_thread_t* thr, const ffrt_thread_attr_t* attr, void* (*func)(void*), void* arg)
31 if (!thr || !func) {
32 FFRT_LOGE("thr and func should not be empty");
51 *thr = p;
56 int ffrt_thread_join(ffrt_thread_t thr, void** res)
58 if (!thr || !res) {
59 FFRT_LOGE("thr or res should not be empty");
63 auto p = reinterpret_cast<ThreadRes*>(thr);
75 int ffrt_thread_detach(ffrt_thread_t thr)
77 if (!thr) {
78 FFRT_LOGE("thr should not be empty");
81 auto p = reinterpret_cast<ThreadRes*>(thr);
86 ffrt::submit([thr]() { free(thr); }, {thr});