57 bool enter (
int timeOutMillisecs = -1);
100 bool isLocked() const noexcept {
return lockWasSuccessful; }
105 bool lockWasSuccessful;
Automatically locks and unlocks an InterProcessLock object.
bool isLocked() const noexcept
Returns true if the InterProcessLock was successfully locked.
ScopedLockType(InterProcessLock &l)
Creates a scoped lock.
~ScopedLockType()
Destructor.
Acts as a critical section which processes can use to block each other.
bool enter(int timeOutMillisecs=-1)
Attempts to lock the critical section.