Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
56 virtual bool join(int32_t timeout = 0);
62 virtual void run() = 0;
static void threadSleep(int32_t time)
Suspends current execution thread for a given time.
static void runThread(LuceneThread *thread)
function that controls the lifetime of the running thread.
virtual void setPriority(int32_t priority)
set running thread priority.
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
bool isRunning()
return thread running state.
static const int32_t NORM_THREAD_PRIORITY
Definition: LuceneThread.h:32
void setRunning(bool running)
set thread running state.
bool running
Flag to indicate running thread.
Definition: LuceneThread.h:40
static int64_t currentId()
Return representation of current execution thread.
Lucene thread container.
Definition: LuceneThread.h:23
virtual bool join(int32_t timeout=0)
wait for thread to finish using an optional timeout.
Definition: AbstractAllTermDocs.h:12
virtual int32_t getPriority()
return running thread priority.
Base class for all Lucene classes.
Definition: LuceneObject.h:31
threadPtr thread
Definition: LuceneThread.h:36
static void threadYield()
Yield current execution thread.
virtual void start()
start thread see run.
virtual bool isAlive()
return whether thread is current running.
static const int32_t MAX_THREAD_PRIORITY
Definition: LuceneThread.h:28
virtual void run()=0
override to provide the body of the thread.
virtual void yield()
causes the currently executing thread object to temporarily pause and allow other threads to execute.
static const int32_t MIN_THREAD_PRIORITY
Definition: LuceneThread.h:33
clucene.sourceforge.net