AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
|
A class to dispatch message sending to another thread.
Implements a common but somewhat complex design pattern in DRAMA tasks.
This is an abstract class, a sub-class must override SendMessage() to send the actual message and GetMessageType() which returns a string indicating the type of message (for use in error reports)
#include "threaddispatch.hh"
Public Member Functions | |
ThreadDispatcher (drama::Task *theTask, const std::string &threadName, const std::string &messageName) | |
Construct a thread dispatcher. | |
virtual | ~ThreadDispatcher () |
Destructor. | |
bool | CheckResult (StatusType *status) |
Check the result of the thread. | |
bool | IsRunning () |
Returns true if the thread is running. | |
void | Send (drama::thread::TMessHandler *messHandler, drama::Path *path, sds::IdPtr arg=nullptr) |
Send a message using a new thread. | |
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tony.farrell@mq.edu.au
Generated on Thu Dec 12 2024 23:07:35 for AAO DRAMA/DRAMA2 C++ Interface by 1.9.8