Home
last modified time | relevance | path

Searched refs:mutex_buf (Results 1 - 1 of 1) sorted by relevance

/third_party/curl/lib/vtls/
H A Dmbedtls_threadlock.c48 static MBEDTLS_MUTEX_T *mutex_buf = NULL; variable
54 mutex_buf = calloc(1, NUMT * sizeof(MBEDTLS_MUTEX_T)); in Curl_mbedtlsthreadlock_thread_setup()
55 if(!mutex_buf) in Curl_mbedtlsthreadlock_thread_setup()
60 if(pthread_mutex_init(&mutex_buf[i], NULL)) in Curl_mbedtlsthreadlock_thread_setup()
63 mutex_buf[i] = CreateMutex(0, FALSE, 0); in Curl_mbedtlsthreadlock_thread_setup()
64 if(mutex_buf[i] == 0) in Curl_mbedtlsthreadlock_thread_setup()
76 if(!mutex_buf) in Curl_mbedtlsthreadlock_thread_cleanup()
81 if(pthread_mutex_destroy(&mutex_buf[i])) in Curl_mbedtlsthreadlock_thread_cleanup()
84 if(!CloseHandle(mutex_buf[i])) in Curl_mbedtlsthreadlock_thread_cleanup()
88 free(mutex_buf); in Curl_mbedtlsthreadlock_thread_cleanup()
[all...]

Completed in 1 milliseconds