Home
last modified time | relevance | path

Searched refs:mtx (Results 1 – 6 of 6) sorted by relevance

/redis-3.2.3/deps/jemalloc/test/src/
H A Dmtx.c8 mtx_init(mtx_t *mtx) in mtx_init() argument
15 mtx->lock = 0; in mtx_init()
32 mtx_fini(mtx_t *mtx) in mtx_fini() argument
38 pthread_mutex_destroy(&mtx->lock); in mtx_fini()
43 mtx_lock(mtx_t *mtx) in mtx_lock() argument
47 EnterCriticalSection(&mtx->lock); in mtx_lock()
49 OSSpinLockLock(&mtx->lock); in mtx_lock()
51 pthread_mutex_lock(&mtx->lock); in mtx_lock()
56 mtx_unlock(mtx_t *mtx) in mtx_unlock() argument
60 LeaveCriticalSection(&mtx->lock); in mtx_unlock()
[all …]
/redis-3.2.3/deps/jemalloc/test/unit/
H A Dmtx.c8 mtx_t mtx; in TEST_BEGIN() local
10 assert_false(mtx_init(&mtx), "Unexpected mtx_init() failure"); in TEST_BEGIN()
11 mtx_lock(&mtx); in TEST_BEGIN()
12 mtx_unlock(&mtx); in TEST_BEGIN()
13 mtx_fini(&mtx); in TEST_BEGIN()
18 mtx_t mtx; member
29 mtx_lock(&arg->mtx); in thd_start()
31 mtx_unlock(&arg->mtx); in thd_start()
42 assert_false(mtx_init(&arg.mtx), "Unexpected mtx_init() failure"); in TEST_BEGIN()
/redis-3.2.3/deps/jemalloc/test/include/test/
H A Dmtx.h18 bool mtx_init(mtx_t *mtx);
19 void mtx_fini(mtx_t *mtx);
20 void mtx_lock(mtx_t *mtx);
21 void mtx_unlock(mtx_t *mtx);
H A Djemalloc_test.h.in145 #include "test/mtx.h"
/redis-3.2.3/deps/jemalloc/include/jemalloc/internal/
H A Dmb.h105 malloc_mutex_t mtx; in mb_write() local
107 malloc_mutex_init(&mtx); in mb_write()
108 malloc_mutex_lock(&mtx); in mb_write()
109 malloc_mutex_unlock(&mtx); in mb_write()
/redis-3.2.3/deps/jemalloc/
H A DMakefile.in116 $(srcroot)test/src/mtx.c $(srcroot)test/src/mq.c \
131 $(srcroot)test/unit/mtx.c \