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

/barrelfish-2018-10-04/lib/dmalloc/
H A Ddmalloc.c1885 /* First, define CAS_LOCK and CLEAR_LOCK on ints */
1886 /* Note CAS_LOCK defined to return 0 on success */
1889 #define CAS_LOCK(sl) __sync_lock_test_and_set(sl, 1) macro
1915 #define CAS_LOCK(sl) x86_cas_lock(sl) macro
1919 #define CAS_LOCK(sl) interlockedexchange(sl, (LONG)1) macro
1941 while (*(volatile int *)sl != 0 || CAS_LOCK(sl)) {
1950 #define TRY_LOCK(sl) !CAS_LOCK(sl)
1952 #define ACQUIRE_LOCK(sl) (CAS_LOCK(sl)? spin_acquire_lock(sl) : 0)
1995 if (!CAS_LOCK(&lk->sl)) {
2014 if (!CAS_LOCK(
[all...]

Completed in 41 milliseconds