Searched refs:mutex_buf (Results 1 – 2 of 2) sorted by relevance
35 static pthread_mutex_t *mutex_buf = NULL; variable44 pthread_mutex_lock(&mutex_buf[n]); in locking_function()46 pthread_mutex_unlock(&mutex_buf[n]); in locking_function()120 mutex_buf = malloc(CRYPTO_num_locks() * sizeof(pthread_mutex_t)); in InitializeTLS()121 if (mutex_buf == NULL) { in InitializeTLS()127 pthread_mutex_init(&mutex_buf[i], NULL); in InitializeTLS()571 if (mutex_buf != NULL) { in FreeTLS()580 pthread_mutex_destroy(&mutex_buf[i]); in FreeTLS()581 free(mutex_buf); in FreeTLS()582 mutex_buf = NULL; in FreeTLS()
2237 static MUTEX_TYPE* mutex_buf = NULL; variable2241 MUTEX_LOCK(mutex_buf[n]);2243 MUTEX_UNLOCK(mutex_buf[n]);2263 mutex_buf = new MUTEX_TYPE[CRYPTO_num_locks()];2264 if (!mutex_buf) {2269 MUTEX_SETUP(mutex_buf[i]);2279 if (!mutex_buf) {2287 MUTEX_CLEANUP(mutex_buf[i]);2290 free(mutex_buf);2291 mutex_buf = NULL;