OdbDesign
OdbDesign ODB++ Parser - C++ library, gRPC/REST server, CLI, tests
 
Loading...
Searching...
No Matches
Utils::WorkQueueLoopThread< TWorkItem > Class Template Reference

#include <WorkQueueLoopThread.h>

Inheritance diagram for Utils::WorkQueueLoopThread< TWorkItem >:
[legend]

Public Types

typedef std::function< bool(TWorkItem &)> processWorkItemFunc
 

Public Member Functions

 WorkQueueLoopThread ()
 
 WorkQueueLoopThread (processWorkItemFunc processWorkItemProc)
 
void addWorkItem (TWorkItem &&workItem)
 
void startProcessing ()
 
void stopProcessing ()
 

Protected Member Functions

void processWorkItemsLoop ()
 
virtual bool processWorkItem (TWorkItem &workItem)
 

Detailed Description

template<typename TWorkItem>
class Utils::WorkQueueLoopThread< TWorkItem >

Definition at line 16 of file WorkQueueLoopThread.h.

Member Typedef Documentation

◆ processWorkItemFunc

template<typename TWorkItem >
typedef std::function<bool(TWorkItem&)> Utils::WorkQueueLoopThread< TWorkItem >::processWorkItemFunc

Definition at line 19 of file WorkQueueLoopThread.h.

Constructor & Destructor Documentation

◆ WorkQueueLoopThread() [1/2]

template<typename TWorkItem >
Utils::WorkQueueLoopThread< TWorkItem >::WorkQueueLoopThread ( )
inline

Definition at line 53 of file WorkQueueLoopThread.h.

◆ WorkQueueLoopThread() [2/2]

template<typename TWorkItem >
Utils::WorkQueueLoopThread< TWorkItem >::WorkQueueLoopThread ( WorkQueueLoopThread< TWorkItem >::processWorkItemFunc  processWorkItemProc)
explicit

Definition at line 59 of file WorkQueueLoopThread.h.

Here is the call graph for this function:

Member Function Documentation

◆ addWorkItem()

template<typename TWorkItem >
void Utils::WorkQueueLoopThread< TWorkItem >::addWorkItem ( TWorkItem &&  workItem)

Definition at line 74 of file WorkQueueLoopThread.h.

◆ processWorkItem()

template<typename TWorkItem >
bool Utils::WorkQueueLoopThread< TWorkItem >::processWorkItem ( TWorkItem &  workItem)
protectedvirtual

Definition at line 45 of file WorkQueueLoopThread.h.

◆ processWorkItemsLoop()

template<typename TWorkItem >
void Utils::WorkQueueLoopThread< TWorkItem >::processWorkItemsLoop ( )
protected

Definition at line 86 of file WorkQueueLoopThread.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ startProcessing()

template<typename TWorkItem >
void Utils::WorkQueueLoopThread< TWorkItem >::startProcessing ( )

Definition at line 120 of file WorkQueueLoopThread.h.

Here is the call graph for this function:

◆ stopProcessing()

template<typename TWorkItem >
void Utils::WorkQueueLoopThread< TWorkItem >::stopProcessing ( )

Definition at line 132 of file WorkQueueLoopThread.h.


The documentation for this class was generated from the following file: