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

#include <MyToolMultiThread.h>

Inheritance diagram for MyToolMultiThread_args:
Thread_args

Public Member Functions

 MyToolMultiThread_args ()
 
 ~MyToolMultiThread_args ()
 
- Public Member Functions inherited from Thread_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
 
- Public Attributes inherited from Thread_args
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

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

Author:
B.Richards
Date:
2019/05/28 10:44:00

Contact: b.ric.nosp@m.hard.nosp@m.s@qmu.nosp@m.l.ac.nosp@m..uk

Definition at line 19 of file MyToolMultiThread.h.

Constructor & Destructor Documentation

MyToolMultiThread_args::MyToolMultiThread_args ( )

Definition at line 3 of file MyToolMultiThread.cpp.

MyToolMultiThread_args::~MyToolMultiThread_args ( )

Definition at line 5 of file MyToolMultiThread.cpp.

Member Data Documentation

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.


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