Lines Matching refs:hnd
85 void Curl_thread_destroy(curl_thread_t hnd) in Curl_thread_destroy() argument
87 if(hnd != curl_thread_t_null) { in Curl_thread_destroy()
88 pthread_detach(*hnd); in Curl_thread_destroy()
89 free(hnd); in Curl_thread_destroy()
93 int Curl_thread_join(curl_thread_t *hnd) in Curl_thread_join() argument
95 int ret = (pthread_join(**hnd, NULL) == 0); in Curl_thread_join()
97 free(*hnd); in Curl_thread_join()
98 *hnd = curl_thread_t_null; in Curl_thread_join()
139 void Curl_thread_destroy(curl_thread_t hnd) in Curl_thread_destroy() argument
141 if(hnd != curl_thread_t_null) in Curl_thread_destroy()
142 CloseHandle(hnd); in Curl_thread_destroy()
145 int Curl_thread_join(curl_thread_t *hnd) in Curl_thread_join() argument
149 int ret = (WaitForSingleObject(*hnd, INFINITE) == WAIT_OBJECT_0); in Curl_thread_join()
151 int ret = (WaitForSingleObjectEx(*hnd, INFINITE, FALSE) == WAIT_OBJECT_0); in Curl_thread_join()
154 Curl_thread_destroy(*hnd); in Curl_thread_join()
156 *hnd = curl_thread_t_null; in Curl_thread_join()