7 #ifndef REFERENCECOUNTINGLOCK_H 8 #define REFERENCECOUNTINGLOCK_H 10 #ifdef epicsExportSharedSymbols 11 # define referenceCountingLockEpicsExportSharedSymbols 12 # undef epicsExportSharedSymbols 16 #include <pv/pvType.h> 17 #include <pv/sharedPtr.h> 19 #ifdef referenceCountingLockEpicsExportSharedSymbols 20 # define epicsExportSharedSymbols 21 # undef referenceCountingLockEpicsExportSharedSymbols 35 class ReferenceCountingLock
38 POINTER_DEFINITIONS(ReferenceCountingLock);
62 bool acquire(epics::pvData::int64 msecs);
81 epics::pvData::Mutex _mutex;
82 epics::pvData::Mutex _countMutex;
void release()
Release previously acquired lock.
virtual ~ReferenceCountingLock()
Destructor of ReferenceCountingLock.
ReferenceCountingLock()
Constructor of ReferenceCountingLock.
bool acquire(epics::pvData::int64 msecs)
Attempt to acquire lock.
int decrement()
Decrement number of references.
int increment()
Increment number of references.