|
| | PubThread (const std::string &thread_name, ccf::mptk::MessageBus &message_bus, const double period=0.1) |
| |
| virtual | ~PubThread () |
| |
| void | Initialise () |
| | Initialise this thread (object).
|
| |
| virtual void | UserLogic () |
| | Use logic invoked periodically (ccf::mptk::Thread).
|
| |
| void | SetProcThrOutputQ (std::shared_ptr< ccf::common::FrameQueue > &queue) |
| | Set reference to the Output Queue of this Processing Thread.
|
| |
| ccf::common::FrameQueue & | GetProcThrOutputQ () |
| | Get reference to the Output Queue of this Processing Thread.
|
| |
| void | SetStatus (const ccf::PubStatus status) |
| | Set the Publishing Status of this Publisher Thread.
|
| |
| ccf::PubStatus | GetStatus () const |
| | Return Publishing Status of this Publisher Thread.
|
| |
| void | AddPublisher (ccf::common::PubBase &pub_obj) |
| |
| uint8_t | NbOfPublishers () const |
| |
| const ccf::common::PubBase & | GetPublisher (const uint16_t nb) const |
| | Get the reference to a specific Data Publisher registered in this Publisher Thread (object).
|
| |
| ccf::common::PubBase & | GetPublisher () |
| | Get the reference to the internal publisher object.
|
| |
| const std::list< ccf::common::PubBase * > & | GetPublishers () const |
| | Get the list of internal Data Publisher (objects).
|
| |
| void | SetParentProcThreadName (const std::string &parent_proc_thread_name) |
| | Set the name of the parent Processing Thread in the object.
|
| |
| const std::string & | GetParentProcThreadName () const |
| | Return the name of the parent Processing Thread from the object.
|
| |
| ccf::common::FrameStatistics & | GetFrameStat () |
| | Get reference to frame handling statistics.
|
| |
| | Thread (const std::string &thread_name, MessageBus &message_bus, const double period=0.1) |
| | Constructor method, setting up the internal members.
|
| |
| virtual | ~Thread () |
| |
| void | SetPriority (const int prio=-1) |
| | If invoked, it will run the thread in real-time mode with the given priority [0; 99].
|
| |
| std::string | GetName () const |
| | Return the thread Name.
|
| |
| void | Run () |
| | Method to invoke the user provided business logic of the thread. The method executes internally a loop.
|
| |
| virtual void | UserLogic () |
| | User provided business logic. The UserLogic method need not execute an internal loop. It is taken care of by the Control() method. Instead the UserLogic() method should (normally) execute it business logic, and return control to the Control() method, which will take of the thread management.
|
| |
| void | Start () |
| | Start the thread execution.
|
| |
| void | Stop () |
| | Stop the thread execution.
|
| |
| void | Pause () |
| | Pause the thread execution.
|
| |
| void | Continue () |
| | Continue a paused thread execution.
|
| |
| double | GetDrift () const |
| |
| bool | GetExecFlag () |
| | Check the Thread Execution Flag. The Thread Execution Flag shall be called regularly in the thread, at least during every internal cycle (of LogicUser()). The behavior is as follows: THREAD_EXEC_RUNNING: Return immediately with true. THREAD_EXEC_PAUSED: Wait internally for flag to change to THREAD_EXEC_RUN/_STOP. TRHEAD_EXEC_STOPPED: Return immediately with false. Thread LogicUser() shall return.
|
| |
| ThreadExecControl | GetExecFlag () const |
| | Return the value of the Thread Execution Flag.
|
| |
| bool | Terminated () |
| | Returns true if thread no longer running.
|
| |
| MessageBus & | MsgBus () |
| | Get acces to the MessageBus associated with this thread object.
|
| |
| std::string | ToString () const |
| | Generate ASCII output providing a status of the object.
|
| |
| | Base () |
| |
| | ~Base () |
| |
| const std::string & | GetClassName () const |
| | Return the allocated name of the class.
|
| |
Publisher Thread MPTK Thread implementation (see also ccf::mptk::Thread).