]>
git.proxmox.com Git - rustc.git/blob - src/jemalloc/test/include/test/mtx.h
2 * mtx is a slightly simplified version of malloc_mutex. This code duplication
3 * is unfortunate, but there are allocator bootstrapping considerations that
4 * would leak into the test infrastructure if malloc_mutex were used directly
10 CRITICAL_SECTION lock
;
11 #elif (defined(JEMALLOC_OS_UNFAIR_LOCK))
13 #elif (defined(JEMALLOC_OSSPIN))
20 bool mtx_init(mtx_t
*mtx
);
21 void mtx_fini(mtx_t
*mtx
);
22 void mtx_lock(mtx_t
*mtx
);
23 void mtx_unlock(mtx_t
*mtx
);