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