3 #include <g_mthread_ThreadTypes.h>
13 virtual void send (
void * aPar ) = 0;
18 template <
class T>
struct class_method {
typedef void ( T::*Pointer_t ) (
void * aPar ); };
19 typedef void ( *FunctionPointer_t ) (
void * );
30 virtual void send (
void * aPar ) { ( *functionPointer ) ( aPar ); }
35 virtual void send (
void * aPar )
37 ((this->clsInstanceP)->*(this->methodPointer))( aPar );
43 virtual void send (
void * aPar )
55 virtual void send (
void * aPar )
59 *data_buffer_ref << aPar;
61 mGetQueueSenderP ( )->push ( data_buffer_ref );
68 void mDrainEvent ( GTimeoutSec_t aTimeOut = 0.0 )
72 data_buffer_ref->reset();
76 *data_buffer_ref >> aPar;
78 SenderReceiver::send ( aPar );
85 virtual void send (
void * aPar ) { SenderSerialized::send ( aPar ); }
90 template <
class T ,
class Q=g::signal::QueueTxRxSimple>
class thread_base :
96 void start (
void * aPar )
98 G_EXC_SET_CONTEXT (
"void ThreadWithParamEvent::thread_base<T,Q>::start ( void * aPar )" );
100 if ( mListSubscribers.getSize() > 0 )
108 G_EXC_RAISE ( g::mthread::ThreadNotHavingSubscribersException );
113 virtual void mEntryPoint (
void* aPar )
Subclass for definng queue tx side.
Definition: g_signal_queue.h:25
#define G_EXC_RAISE(aexctype)
Raises an exception using the the default message.
Definition: g_exception_macros.h:61
Definition: g.mthread.ThreadWithParamEvent.h:41
Definition: g.mthread.ThreadWithParamEvent.h:65
Class capable of receiving events.
Definition: g_signal_signal_receiver.h:10
Definition: g.mthread.ThreadWithParamEvent.h:82
Definition: g_cont_ref_lst.h:10
Definition: g.mthread.ThreadSimpleEvent.h:5
Definition: g.mthread.ThreadWithParamEvent.h:52
Definition: g.mthread.ThreadWithParamEvent.h:16
Definition: g_cont_it_ref.h:14
Definition: g.mthread.ThreadWithParamEvent.h:11
Subclass for defining queue rx side.
Definition: g_signal_queue.h:17
Definition: g.mthread.ThreadWithParamEvent.h:88
Definition: g_signal_subscribers.h:28
Definition: g.mthread.ThreadWithParamEvent.h:18
Definition: g_cont_it_ref.h:10
Definition: g.mthread.ThreadWithParamEvent.h:22
Definition: g.mthread.ThreadWithParamEvent.h:33
Interface base class for sender serializer.
Definition: g_signal.h:17
Definition: g.mthread.ThreadWithParamEvent.h:90
Definition: g_signal_subscribers.h:10
#define G_EXC_SET_CONTEXT(acontextstr)
Sets the method context.
Definition: g_exception_macros.h:52
Interface base class for receiver serializer.
Definition: g_signal.h:24
Definition: g.mthread.ThreadWithParamEvent.h:21
Definition: g.mthread.ThreadWithParamEvent.h:28