ToolDAQFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Public Attributes | List of all members
Thread_args Struct Reference

#include <Utilities.h>

Inheritance diagram for Thread_args:
MyToolDynamicMultiThread_args MyToolMultiThread_args MyToolThread_args MyToolZMQMultiThread_args

Public Member Functions

 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

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...
 

Detailed Description

Definition at line 29 of file Utilities.h.

Constructor & Destructor Documentation

Thread_args::Thread_args ( )
inline

< Simple constructor

Definition at line 31 of file Utilities.h.

Thread_args::Thread_args ( zmq::context_t *  contextin,
std::string  threadname,
void(*)(std::string)  funcin 
)
inline

< Construtor for thread with string

Definition at line 35 of file Utilities.h.

Thread_args::Thread_args ( zmq::context_t *  contextin,
std::string  threadname,
void(*)(Thread_args *)  funcin 
)
inline

< Constrcutor for thread with args

Definition at line 43 of file Utilities.h.

virtual Thread_args::~Thread_args ( )
inlinevirtual

< virtual constructor

Definition at line 51 of file Utilities.h.

Member Data Documentation

zmq::context_t* Thread_args::context

ZMQ context used for ZMQ socket creation.

Definition at line 58 of file Utilities.h.

void(* Thread_args::func)(Thread_args *)

function pointer to thread with args

Definition at line 61 of file Utilities.h.

void(* Thread_args::func_with_string)(std::string)

function pointer to string thread

Definition at line 60 of file Utilities.h.

bool Thread_args::kill

Bool flay used to kill the thread.

Definition at line 65 of file Utilities.h.

bool Thread_args::running

Bool flag to tell the thread to run (if not set thread goes into wait cycle.

Definition at line 64 of file Utilities.h.

zmq::socket_t* Thread_args::sock

ZMQ socket pointer is assigned in string thread,but can be sued otherwise.

Definition at line 63 of file Utilities.h.

pthread_t Thread_args::thread

Simple constructor underlying thread that interface is built ontop of.

Definition at line 62 of file Utilities.h.

std::string Thread_args::ThreadName

name of thread (deffined at creation)

Definition at line 59 of file Utilities.h.


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