Lines Matching refs:hnd
83 void Curl_thread_destroy(curl_thread_t hnd) in Curl_thread_destroy() argument
85 if(hnd != curl_thread_t_null) { in Curl_thread_destroy()
86 pthread_detach(*hnd); in Curl_thread_destroy()
87 free(hnd); in Curl_thread_destroy()
91 int Curl_thread_join(curl_thread_t *hnd) in Curl_thread_join() argument
93 int ret = (pthread_join(**hnd, NULL) == 0); in Curl_thread_join()
95 free(*hnd); in Curl_thread_join()
96 *hnd = curl_thread_t_null; in Curl_thread_join()
134 void Curl_thread_destroy(curl_thread_t hnd) in Curl_thread_destroy() argument
136 CloseHandle(hnd); in Curl_thread_destroy()
139 int Curl_thread_join(curl_thread_t *hnd) in Curl_thread_join() argument
143 int ret = (WaitForSingleObject(*hnd, INFINITE) == WAIT_OBJECT_0); in Curl_thread_join()
145 int ret = (WaitForSingleObjectEx(*hnd, INFINITE, FALSE) == WAIT_OBJECT_0); in Curl_thread_join()
148 Curl_thread_destroy(*hnd); in Curl_thread_join()
150 *hnd = curl_thread_t_null; in Curl_thread_join()