18#ifndef _DECAF_UTIL_CONCURRENT_LOCKS_LOCK_H_
19#define _DECAF_UTIL_CONCURRENT_LOCKS_LOCK_H_
A TimeUnit represents time durations at a given unit of granularity and provides utility methods to c...
Definition TimeUnit.h:62
Condition factors out the Mutex monitor methods (wait, notify and notifyAll) into distinct objects to...
Definition Condition.h:132
Lock implementations provide more extensive locking operations than can be obtained using synchronize...
Definition Lock.h:99
virtual bool tryLock(long long time, const TimeUnit &unit)=0
Acquires the lock if it is free within the given waiting time and the current thread has not been int...
virtual Condition * newCondition()=0
Returns a new Condition instance that is bound to this Lock instance.
virtual bool tryLock()=0
Acquires the lock only if it is free at the time of invocation.
virtual void unlock()=0
Releases the lock.
virtual void lockInterruptibly()=0
Acquires the lock unless the current thread is interrupted.
virtual std::string toString() const =0
virtual void lock()=0
Acquires the lock.
#define DECAF_API
Definition Config.h:29
Definition AbstractOwnableSynchronizer.h:29
Definition AbstractExecutorService.h:28
Definition AbstractCollection.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25