Lines Matching refs:thr
361 int thrd_create(thrd_t *thr, thrd_start_t func, void *arg) in thrd_create() argument
375 *thr = (HANDLE)_beginthreadex(NULL, 0, _thrd_wrapper_function, (void *)ti, 0, NULL); in thrd_create()
377 if(pthread_create(thr, NULL, _thrd_wrapper_function, (void *)ti) != 0) in thrd_create()
379 *thr = 0; in thrd_create()
384 if(!*thr) in thrd_create()
402 int thrd_detach(thrd_t thr) in thrd_detach() argument
405 (void)thr; in thrd_detach()
432 int thrd_join(thrd_t thr, int *res) in thrd_join() argument
435 if (WaitForSingleObject(thr, INFINITE) == WAIT_FAILED) in thrd_join()
442 GetExitCodeThread(thr, &dwRes); in thrd_join()
448 if (pthread_join(thr, &pres) != 0) in thrd_join()