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()
117 void Curl_thread_destroy(curl_thread_t hnd) in Curl_thread_destroy() argument
119 CloseHandle(hnd); in Curl_thread_destroy()
122 int Curl_thread_join(curl_thread_t *hnd) in Curl_thread_join() argument
126 int ret = (WaitForSingleObject(*hnd, INFINITE) == WAIT_OBJECT_0); in Curl_thread_join()
128 int ret = (WaitForSingleObjectEx(*hnd, INFINITE, FALSE) == WAIT_OBJECT_0); in Curl_thread_join()
131 Curl_thread_destroy(*hnd); in Curl_thread_join()
133 *hnd = curl_thread_t_null; in Curl_thread_join()