ApertureOS
Data Structures | Enumerations | Functions
Message Pump API

Data Structures

struct  MsgData
 Message Data. More...
 

Enumerations

enum  PumpMsgTypes { MSG_T_NONE = 0, MSG_T_ERROR = 1, MSG_T_SOCK = 3 }
 Messages that can be sent by the message pump. More...
 

Functions

void MsgPump_Register ()
 Register the current thread to recieve message pump notifications. More...
 
void MsgPump_SendMessage ()
 Send a message through the message pump. More...
 

Detailed Description

Enumeration Type Documentation

Messages that can be sent by the message pump.

Enumerator
MSG_T_NONE 

No message.

MSG_T_ERROR 

Error.

MSG_T_SOCK 

Socket message/notification.

Function Documentation

void MsgPump_Register ( )

Register the current thread to recieve message pump notifications.

The thread must poll for messages in its queue and act upon them accordingly

void MsgPump_SendMessage ( )

Send a message through the message pump.

Send a message to any local application through the message pump