JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <IOThreadPool.h>
Public Types | |
typedef IQueueStruct::queue_t | IQueue |
typedef OQueueStruct::queue_t | OQueue |
typedef IQueueStruct::payload_t | IPayload |
typedef OQueueStruct::payload_t | OPayload |
typedef WConfig | WConf |
Public Member Functions | |
IWorkerThread (IQueue *iqueue, OQueue *oqueue, const WConf &conf) | |
IWorkerThread (IQueue *iqueue, OQueue *oqueue, WConf &&conf) | |
IWorkerThread (IWorkerThread &&)=default | |
IWorkerThread & | operator= (IWorkerThread &&)=default |
IWorkerThread (const IWorkerThread &)=delete | |
IWorkerThread & | operator= (const IWorkerThread &)=delete |
virtual | ~IWorkerThread () |
void | start () |
void | waitFor () |
void | stop () |
bool | requestedToStop () const |
bool | isRunning () const |
Static Public Member Functions | |
static constexpr auto | getIQueueFlags () |
static constexpr auto | getOQueueFlags () |
static const size_t | recommendedThreads () |
Protected Member Functions | |
virtual void | work ()=0 |
Protected Attributes | |
IQueue * | iqueue |
OQueue * | oqueue |
WConf | conf |
bool | shouldRun = true |
Interface for workers that can be used with the IOThreadPool
typedef IQueueStruct::payload_t IWorkerThread< IQueueStruct, OQueueStruct, WConfig >::IPayload |
typedef IQueueStruct::queue_t IWorkerThread< IQueueStruct, OQueueStruct, WConfig >::IQueue |
typedef OQueueStruct::payload_t IWorkerThread< IQueueStruct, OQueueStruct, WConfig >::OPayload |
typedef OQueueStruct::queue_t IWorkerThread< IQueueStruct, OQueueStruct, WConfig >::OQueue |
typedef WConfig IWorkerThread< IQueueStruct, OQueueStruct, WConfig >::WConf |
|
inline |
|
inline |
|
default |
|
delete |
|
inlinevirtual |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inline |
|
delete |
|
default |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
protectedpure virtual |
Implemented in QueryThread, joda::docparsing::JSONURLReader, joda::docparsing::JSONFileReader, joda::docparsing::BeautifulJSONFileReader, joda::docparsing::JSONTextParser< Scheduler >, joda::docparsing::JSONStreamParser< Scheduler >, joda::docparsing::JSONMetaParser< Scheduler >, and DirectoryExportThread.
|
protected |
|
protected |
|
protected |
|
protected |