Lines Matching refs:hnd
85 void Curl_thread_destroy(curl_thread_t hnd)
87 if(hnd != curl_thread_t_null) {
88 pthread_detach(*hnd);
89 free(hnd);
93 int Curl_thread_join(curl_thread_t *hnd)
95 int ret = (pthread_join(**hnd, NULL) == 0);
97 free(*hnd);
98 *hnd = curl_thread_t_null;
119 void Curl_thread_destroy(curl_thread_t hnd)
121 CloseHandle(hnd);
124 int Curl_thread_join(curl_thread_t *hnd)
126 int ret = (WaitForSingleObject(*hnd, INFINITE) == WAIT_OBJECT_0);
128 Curl_thread_destroy(*hnd);
130 *hnd = curl_thread_t_null;