FACT++
1.0
|
#include <Queue.h>
Public Member Functions | |
Queue (const callback &f, bool startup=true) | |
Queue (const Queue< T, List > &q) | |
Queue< T, List > & | operator= (const Queue< T, List > &q) |
~Queue () | |
bool | start () |
bool | stop () |
bool | abort () |
bool | wait (bool abrt=false) |
bool | enablePromptExecution () |
bool | disablePromptExecution () |
bool | setPromptExecution (bool state) |
bool | post (const T &val) |
bool | notify () |
bool | move (List &x, typename List::iterator i) |
size_t | size () const |
bool | empty () const |
bool | operator< (const Queue &other) const |
Queue (const callback &f) | |
~Queue () | |
bool | start () |
bool | stop () |
bool | abort () |
bool | wait (bool abrt=false) |
bool | post (const T &val) |
bool | move (std::list< T > &x, typename std::list< T >::iterator i) |
size_t | size () const |
bool | empty () const |
Private Types | |
enum | state_t { kIdle, kRun, kStop, kAbort, kTrigger, kPrompt, kIdle, kRun, kStop, kAbort } |
enum | state_t { kIdle, kRun, kStop, kAbort, kTrigger, kPrompt, kIdle, kRun, kStop, kAbort } |
typedef std::function< bool(const T &)> | callback |
typedef std::function< void(const T &)> | callback |
Private Member Functions | |
void | Thread () |
void | Thread () |
Private Attributes | |
size_t | fSize |
List | fList |
std::mutex | fMutex |
std::condition_variable | fCond |
state_t | fState |
callback | fCallback |
std::thread | fThread |
std::list< T > | fList |