24 #ifndef INCLUDED_OSL_INTERLCK_H 25 #define INCLUDED_OSL_INTERLCK_H 36 #if defined LIBO_INTERNAL_ONLY 37 #include "config_global.h" 71 #if HAVE_GCC_BUILTIN_ATOMIC 72 # define osl_atomic_increment(p) __sync_add_and_fetch((p), 1) 74 # define osl_atomic_increment(p) _InterlockedIncrement(p) 76 # define osl_atomic_increment(p) osl_incrementInterlockedCount((p)) 90 #if HAVE_GCC_BUILTIN_ATOMIC 91 # define osl_atomic_decrement(p) __sync_sub_and_fetch((p), 1) 93 # define osl_atomic_decrement(p) _InterlockedDecrement(p) 95 # define osl_atomic_decrement(p) osl_decrementInterlockedCount((p)) 105 #endif // INCLUDED_OSL_INTERLCK_H SAL_DLLPUBLIC oslInterlockedCount osl_decrementInterlockedCount(oslInterlockedCount *pCount)
Decrement the count variable addressed by pCount.
#define SAL_DLLPUBLIC
Definition: saldllapi.h:34
sal_Int32 oslInterlockedCount
Definition: interlck.h:44
SAL_DLLPUBLIC oslInterlockedCount osl_incrementInterlockedCount(oslInterlockedCount *pCount)
Increments the count variable addressed by pCount.