CLucene - a full-featured, c++ search engine
API Documentation
#include <Lock.h>

Public Member Functions | |
| LuceneLockWith (LuceneLock *lock, int64_t lockWaitTimeout) | |
| Constructs an executor that will grab the named lock. | |
| virtual | ~LuceneLockWith () |
| T | runAndReturn () |
| Calls doBody while lock is obtained. | |
| void | run () |
Protected Member Functions | |
| virtual T | doBody ()=0 |
| lucene::store::LuceneLockWith< T >::LuceneLockWith | ( | LuceneLock * | lock, | |
| int64_t | lockWaitTimeout | |||
| ) | [inline] |
Constructs an executor that will grab the named lock.
Defaults lockWaitTimeout to LUCENE_COMMIT_LOCK_TIMEOUT.
| virtual lucene::store::LuceneLockWith< T >::~LuceneLockWith | ( | ) | [inline, virtual] |
| virtual T lucene::store::LuceneLockWith< T >::doBody | ( | ) | [protected, pure virtual] |
Implemented in lucene::index::IndexReader::LockWith, and lucene::index::IndexReader::CommitLockWith.
| void lucene::store::LuceneLockWith< T >::run | ( | ) | [inline] |
| T lucene::store::LuceneLockWith< T >::runAndReturn | ( | ) | [inline] |