Home
last modified time | relevance | path

Searched refs:hash_mutex (Results 1 – 2 of 2) sorted by relevance

/freebsd-13.1/contrib/apr/atomic/unix/
H A Dmutex64.c40 static apr_thread_mutex_t **hash_mutex; variable
48 if (hash_mutex == data) in atomic_cleanup()
49 hash_mutex = NULL; in atomic_cleanup()
59 if (hash_mutex != NULL) in apr__atomic_generic64_init()
62 hash_mutex = apr_palloc(p, sizeof(apr_thread_mutex_t*) * NUM_ATOMIC_HASH); in apr__atomic_generic64_init()
63 apr_pool_cleanup_register(p, hash_mutex, atomic_cleanup, in apr__atomic_generic64_init()
67 rv = apr_thread_mutex_create(&(hash_mutex[i]), in apr__atomic_generic64_init()
79 apr_thread_mutex_t *mutex = hash_mutex[ATOMIC_HASH(mem)]; in mutex_hash()
H A Dmutex.c40 static apr_thread_mutex_t **hash_mutex; variable
48 if (hash_mutex == data) in atomic_cleanup()
49 hash_mutex = NULL; in atomic_cleanup()
59 if (hash_mutex != NULL) in apr_atomic_init()
62 hash_mutex = apr_palloc(p, sizeof(apr_thread_mutex_t*) * NUM_ATOMIC_HASH); in apr_atomic_init()
63 apr_pool_cleanup_register(p, hash_mutex, atomic_cleanup, in apr_atomic_init()
67 rv = apr_thread_mutex_create(&(hash_mutex[i]), in apr_atomic_init()
79 apr_thread_mutex_t *mutex = hash_mutex[ATOMIC_HASH(mem)]; in mutex_hash()