45 bool obtain(int32_t lockWaitTimeout);
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
An interprocess mutex lock.
Definition Lock.h:16
virtual bool isLocked()=0
Returns true if the resource is currently locked. Note that one must still call obtain() before using...
bool obtain(int32_t lockWaitTimeout)
Attempts to obtain an exclusive lock within amount of time given. Polls once per LOCK_POLL_INTERVAL (...
virtual void release()=0
Releases exclusive access.
static const int32_t LOCK_POLL_INTERVAL
Pass this value to obtain(int64_t) to try forever to obtain the lock.
Definition Lock.h:26
static const int32_t LOCK_OBTAIN_WAIT_FOREVER
How long obtain(int64_t) waits, in milliseconds, in between attempts to acquire the lock.
Definition Lock.h:23
virtual bool obtain()=0
Attempts to obtain exclusive access and immediately return upon success or failure.
Base class for all Lucene classes.
Definition LuceneObject.h:31
Definition AbstractAllTermDocs.h:12