#include <unistd.h>
#include <sys/syscall.h>
#include "ebase.h"
#include "etbasic.h"
#include "eerror.h"
#include "egetopt.h"
#include "eshmem.h"
#include "esynch.h"
#include "esynch2.h"
#include "etimer.h"
Go to the source code of this file.
◆ BEGIN_MESSAGE_MAP
#define BEGIN_MESSAGE_MAP |
( |
|
theClass, |
|
|
|
baseClass |
|
) |
| |
Value:const theClass::msgmap_t *theClass::GetMessageMap() const \
{ \
return GetThisMessageMap(); \
} \
const theClass::msgmap_t *theClass::GetThisMessageMap() \
{ \
typedef baseClass TheBaseClass; \
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wpmf-conversions\"") \
static const msgentry_t _msgEntries[] = \
{
Begins the message map declaration.
The event message map establishes the relationship of the event ID's to the individual event handlers defined in the class. "theClass" is the name of the class containing the message handlers. "baseClass" is the class name that "theClass" is derived from.
◆ DECLARE_MESSAGE_MAP
#define DECLARE_MESSAGE_MAP |
( |
| ) |
|
Value:protected: \
static const msgmap_t *GetThisMessageMap(); \
virtual const msgmap_t *GetMessageMap() const;
Inserts message map declarations into the thread class.
This macro should be used in the event thread class definition.
◆ EM_INIT
thread initialization event
◆ EM_QUIT
◆ EM_SOCKETSELECT_ERROR
#define EM_SOCKETSELECT_ERROR 7 |
socket select error event see ESocketThread
◆ EM_SOCKETSELECT_EXCEPTION
#define EM_SOCKETSELECT_EXCEPTION 8 |
socket exception event see ESocketThread
◆ EM_SOCKETSELECT_READ
#define EM_SOCKETSELECT_READ 5 |
socket read event see ESocketThread
◆ EM_SOCKETSELECT_WRITE
#define EM_SOCKETSELECT_WRITE 6 |
socket write event see ESocketThread
◆ EM_SUSPEND
◆ EM_TIMER
thread timer expiration event
◆ EM_USER
◆ END_MESSAGE_MAP
#define END_MESSAGE_MAP |
( |
| ) |
|
Value:{0, (msgfxn_t)NULL} \
}; \
_Pragma("GCC diagnostic pop") \
static const msgmap_t msgMap = \
{&TheBaseClass::GetThisMessageMap, &_msgEntries[0]}; \
return &msgMap; \
}
Ends the message map declaration.
◆ ON_MESSAGE
#define ON_MESSAGE |
( |
|
id, |
|
|
|
memberFxn |
|
) |
| {id, (msgfxn_t)&memberFxn}, |
Defines an invidual event handler.
◆ _EThreadMessage
◆ EThreadPrivate
◆ EThreadPublic
◆ EThreadQueueMode
Defines how a client can access a thread queue.
Enumerator |
---|
ReadOnly | Allows read only access.
|
WriteOnly | Allows read only access.
|
ReadWrite | Allows read or write access.
|