ToolDAQFramework
|
#include <MyToolMultiThread.h>
Public Member Functions | |
MyToolMultiThread_args () | |
~MyToolMultiThread_args () | |
![]() | |
Thread_args () | |
Thread_args (zmq::context_t *contextin, std::string threadname, void(*funcin)(std::string)) | |
Thread_args (zmq::context_t *contextin, std::string threadname, void(*funcin)(Thread_args *)) | |
virtual | ~Thread_args () |
Public Attributes | |
bool | busy |
std::string | message |
![]() | |
zmq::context_t * | context |
ZMQ context used for ZMQ socket creation. More... | |
void(* | func )(Thread_args *) |
function pointer to thread with args More... | |
void(* | func_with_string )(std::string) |
function pointer to string thread More... | |
bool | kill |
Bool flay used to kill the thread. More... | |
bool | running |
Bool flag to tell the thread to run (if not set thread goes into wait cycle. More... | |
zmq::socket_t * | sock |
ZMQ socket pointer is assigned in string thread,but can be sued otherwise. More... | |
pthread_t | thread |
Simple constructor underlying thread that interface is built ontop of. More... | |
std::string | ThreadName |
name of thread (deffined at creation) More... | |
This is a struct to place data you want your thread to acess or exchange with it. The idea is the datainside is only used by the thread and so will be thread safe
Contact: b.ric hard s@qmu l.ac .uk
Definition at line 19 of file MyToolMultiThread.h.
MyToolMultiThread_args::MyToolMultiThread_args | ( | ) |
Definition at line 3 of file MyToolMultiThread.cpp.
MyToolMultiThread_args::~MyToolMultiThread_args | ( | ) |
Definition at line 5 of file MyToolMultiThread.cpp.
bool MyToolMultiThread_args::busy |
Definition at line 23 of file MyToolMultiThread.h.
std::string MyToolMultiThread_args::message |
Definition at line 24 of file MyToolMultiThread.h.