Lucene++ - a full-featured, c++ search engine
API Documentation
Utility class to support signaling notifications. More...
#include <LuceneSignal.h>
Public Member Functions | |
| LuceneSignal (const SynchronizePtr &objectLock=SynchronizePtr()) | |
| virtual | ~LuceneSignal () |
| void | wait (int32_t timeout=0) |
| Wait for signal using an optional timeout. More... | |
| void | notifyAll () |
| Notify all threads waiting for signal. More... | |
Static Public Member Functions | |
| static void | createSignal (LuceneSignalPtr &signal, const SynchronizePtr &objectLock) |
| create a new LuceneSignal instance atomically. More... | |
Protected Attributes | |
| boost::mutex | waitMutex |
| boost::condition | signalCondition |
| SynchronizePtr | objectLock |
Utility class to support signaling notifications.
| Lucene::LuceneSignal::LuceneSignal | ( | const SynchronizePtr & | objectLock = SynchronizePtr() | ) |
|
virtual |
|
static |
create a new LuceneSignal instance atomically.
| void Lucene::LuceneSignal::notifyAll | ( | ) |
Notify all threads waiting for signal.
| void Lucene::LuceneSignal::wait | ( | int32_t | timeout = 0 | ) |
Wait for signal using an optional timeout.
|
protected |
|
protected |
|
protected |