23 static const int32_t LOCK_OBTAIN_WAIT_FOREVER;
31 virtual bool obtain() = 0;
34 virtual void release() = 0;
38 virtual bool isLocked() = 0;
45 bool obtain(int32_t lockWaitTimeout);
An interprocess mutex lock.
Definition: Lock.h:16
Base class for all Lucene classes.
Definition: LuceneObject.h:31
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
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12