18 #ifndef _DECAF_UTIL_CONCURRENT_LOCKS_LOCK_H_
19 #define _DECAF_UTIL_CONCURRENT_LOCKS_LOCK_H_
29 namespace concurrent {
118 virtual void lock() = 0;
160 virtual void lockInterruptibly() = 0;
189 virtual bool tryLock() = 0;
246 virtual bool tryLock(
long long time,
const TimeUnit& unit) = 0;
261 virtual void unlock() = 0;
287 virtual std::string toString()
const = 0;
Condition factors out the Mutex monitor methods (wait, notify and notifyAll) into distinct objects to...
Definition: Condition.h:132
A TimeUnit represents time durations at a given unit of granularity and provides utility methods to c...
Definition: TimeUnit.h:62
#define DECAF_API
Definition: Config.h:29
Lock implementations provide more extensive locking operations than can be obtained using synchronize...
Definition: Lock.h:99