Searched defs:CAS_LOCK (Results 1 - 1 of 1) sorted by relevance

/external/dlmalloc/
H A Dmalloc.c1824 /* First, define CAS_LOCK and CLEAR_LOCK on ints */
1825 /* Note CAS_LOCK defined to return 0 on success */
1828 #define CAS_LOCK(sl) __sync_lock_test_and_set(sl, 1) macro
1854 #define CAS_LOCK(sl) x86_cas_lock(sl) macro
1858 #define CAS_LOCK(sl) interlockedexchange(sl, (LONG)1) macro
1880 while (*(volatile int *)sl != 0 || CAS_LOCK(sl)) {
1889 #define TRY_LOCK(sl) !CAS_LOCK(sl)
1891 #define ACQUIRE_LOCK(sl) (CAS_LOCK(sl)? spin_acquire_lock(sl) : 0)
1934 if (!CAS_LOCK(&lk->sl)) {
1953 if (!CAS_LOCK(
[all...]

Completed in 125 milliseconds