20 #ifndef INCLUDED_OSL_INTERLCK_H
21 #define INCLUDED_OSL_INTERLCK_H
63 #if HAVE_GCC_BUILTIN_ATOMIC
64 # define osl_atomic_increment(p) __sync_add_and_fetch((p), 1)
66 # define osl_atomic_increment(p) _InterlockedIncrement(p)
68 # define osl_atomic_increment(p) osl_incrementInterlockedCount((p))
82 #if HAVE_GCC_BUILTIN_ATOMIC
83 # define osl_atomic_decrement(p) __sync_sub_and_fetch((p), 1)
85 # define osl_atomic_decrement(p) _InterlockedDecrement(p)
87 # define osl_atomic_decrement(p) osl_decrementInterlockedCount((p))
97 #endif // INCLUDED_OSL_INTERLCK_H
#define SAL_DLLPUBLIC
Definition: saldllapi.h:30
SAL_DLLPUBLIC oslInterlockedCount osl_incrementInterlockedCount(oslInterlockedCount *pCount)
Increments the count variable addressed by pCount.
sal_Int32 oslInterlockedCount
Definition: interlck.h:36
SAL_DLLPUBLIC oslInterlockedCount osl_decrementInterlockedCount(oslInterlockedCount *pCount)
Decrement the count variable addressed by pCount.