20 #ifndef _OSL_INTERLOCK_H_
21 #define _OSL_INTERLOCK_H_
59 #if HAVE_GCC_BUILTIN_ATOMIC
60 # define osl_atomic_increment(p) __sync_add_and_fetch((p), 1)
62 # define osl_atomic_increment(p) osl_incrementInterlockedCount((p))
76 #if HAVE_GCC_BUILTIN_ATOMIC
77 # define osl_atomic_decrement(p) __sync_sub_and_fetch((p), 1)
79 # define osl_atomic_decrement(p) osl_decrementInterlockedCount((p))
#define SAL_DLLPUBLIC
Definition: saldllapi.h:30
sal_Int32 oslInterlockedCount
Definition: interlck.h:32
SAL_DLLPUBLIC oslInterlockedCount osl_decrementInterlockedCount(oslInterlockedCount *pCount)
Decrement the count variable addressed by pCount.
SAL_DLLPUBLIC oslInterlockedCount osl_incrementInterlockedCount(oslInterlockedCount *pCount)
Increments the count variable addressed by pCount.