3 #include "g_mthread_ThreadAbstract.h"
10 G_EXC_DEFINE_MSG(ThreadNotHavingSubscribersException,g::mthread::MultithreadException,
"Invalid call of start with no subscribers added");
15 G_SIGNAL(
g::mthread::ThreadWithParamEvent(
void* aPar))
17 #include G_SIGNAL_INCLUDE(g.mthread.ThreadSimpleEvent)
18 #include G_SIGNAL_INCLUDE(g.mthread.ThreadWithParamEvent)
25 #if G_AUTOPTION_ON_MSVC
26 # pragma warning ( disable : 4512 )
33 template <
class T>
ThreadSimple ( T* aP ,
void ( T::*method ) ( ) )
35 subscribe ( aP , method );
44 void start (
const char* aName = NULL )
46 ThreadAbstract::start(NULL,aName);
49 inline void start(
void* ,
const char* ) { ThreadAbstract::start(); }
51 void mEntryPoint (
void* )
63 template <
class T>
ThreadWithParam ( T* aP ,
void ( T::*method ) (
void* ) )
65 subscribe ( aP , method );
73 inline void start(
void* p ) { ThreadAbstract::start(p); }
76 void mEntryPoint (
void* aPar )
84 template <
class E,
class Q=g::signal::QueueTxRxSimple>
struct params_thread : E::template thread_base<g::mthread::ThreadAbstract,Q>{};
86 #if G_AUTOPTION_ON_MSVC
87 # pragma warning ( default : 4512 )
Definition: g.mthread.ThreadSimpleEvent.h:41
Definition: g.mthread.ThreadWithParamEvent.h:41
#define G_EXC_DEFINE_MSG(aexctypename, abaseexctypename, amsg)
Definition: g_exception_macros.h:43
Definition: g_mthread_ThreadTypes.h:59
Definition: g.mthread.ThreadSimpleEvent.h:5
Definition: g.mthread.ThreadSimpleEvent.h:16
#define G_SIGNAL(sig_if)
Instanciate a signal with a certain interface.
Definition: g_signal.h:40
Definition: g_mthread_ThreadTypes.h:29
Definition: g_mthread_ThreadAbstract.h:18
Definition: g_mthread_ThreadTypes.h:84