mt4cpp
Public Member Functions | List of all members
mt4cpp::CommandQueue Class Reference
Inheritance diagram for mt4cpp::CommandQueue:
Inheritance graph
Collaboration diagram for mt4cpp::CommandQueue:
Collaboration graph

Public Member Functions

 CommandQueue ()
 
PCommand read ()
 
CommandID write (PCommand cmd)
 
bool getQuitFlag () const
 
void setQuitFlag ()
 
long generateCommandId ()
 

Constructor & Destructor Documentation

mt4cpp::CommandQueue::CommandQueue ( )
inline

constructor

Member Function Documentation

PCommand mt4cpp::CommandQueue::read ( )
inline

read the command to execute. Suspend the thread if the queue is empty. Returns not empty optional if the queue is destroyed.

CommandID mt4cpp::CommandQueue::write ( PCommand  cmd)
inline

write the command into queue, returns the new command ID

Referenced by mt4cpp::Scheduler::executeAsynchronously().

bool mt4cpp::CommandQueue::getQuitFlag ( ) const
inline

accessor

void mt4cpp::CommandQueue::setQuitFlag ( )
inline

mutator

Referenced by mt4cpp::Scheduler::finishAndJoin().


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