thread_supervisor
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
tut::thread::Thread Class Reference

Detailed Description

Thread handling class.

Definition at line 198 of file supervisor.h.

#include <supervisor.h>

Public Types

using List = std::list< Thread >
 
using Reference = List::iterator
 

Public Member Functions

template<class t_Logger , class... t_Args>
void start (Supervisor< t_Logger > *supervisor, Reference self, const Parameters &&parameters, t_Args &&...args)
 
void join ()
 

Public Attributes

Parameters parameters_
 
std::thread thread_
 
Reference self_
 

Protected Member Functions

template<class t_Logger , class t_Function , class... t_Args>
void startOnce (Supervisor< t_Logger > *supervisor, t_Function &&function, t_Args &&...args)
 
template<class t_Logger , class t_Function , class... t_Args>
void startLoop (Supervisor< t_Logger > *supervisor, t_Function &&function, t_Args &&...args)
 
template<class t_Logger , class t_Function , class... t_Args>
void startThread (Supervisor< t_Logger > *supervisor, t_Function &&function, t_Args &&...args)
 

Member Typedef Documentation

◆ List

using tut::thread::Thread::List = std::list<Thread>

Definition at line 203 of file supervisor.h.

◆ Reference

using tut::thread::Thread::Reference = List::iterator

Definition at line 204 of file supervisor.h.

Member Function Documentation

◆ join()

void tut::thread::Thread::join ( )
inline

Definition at line 325 of file supervisor.h.

◆ start()

template<class t_Logger , class... t_Args>
void tut::thread::Thread::start ( Supervisor< t_Logger > *  supervisor,
Reference  self,
const Parameters &&  parameters,
t_Args &&...  args 
)
inline

Definition at line 304 of file supervisor.h.

◆ startLoop()

template<class t_Logger , class t_Function , class... t_Args>
void tut::thread::Thread::startLoop ( Supervisor< t_Logger > *  supervisor,
t_Function &&  function,
t_Args &&...  args 
)
inlineprotected

Definition at line 241 of file supervisor.h.

◆ startOnce()

template<class t_Logger , class t_Function , class... t_Args>
void tut::thread::Thread::startOnce ( Supervisor< t_Logger > *  supervisor,
t_Function &&  function,
t_Args &&...  args 
)
inlineprotected

Definition at line 214 of file supervisor.h.

◆ startThread()

template<class t_Logger , class t_Function , class... t_Args>
void tut::thread::Thread::startThread ( Supervisor< t_Logger > *  supervisor,
t_Function &&  function,
t_Args &&...  args 
)
inlineprotected

Definition at line 272 of file supervisor.h.

Member Data Documentation

◆ parameters_

Parameters tut::thread::Thread::parameters_

Definition at line 207 of file supervisor.h.

◆ self_

Reference tut::thread::Thread::self_

Definition at line 209 of file supervisor.h.

◆ thread_

std::thread tut::thread::Thread::thread_

Definition at line 208 of file supervisor.h.


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