ACE  6.3.3
Public Member Functions | Public Attributes | List of all members
ACE_Dev_Poll_Reactor::Event_Tuple Struct Reference

Struct that collects event registration information for a handle. More...

Collaboration diagram for ACE_Dev_Poll_Reactor::Event_Tuple:
Collaboration graph
[legend]

Public Member Functions

 Event_Tuple (ACE_Event_Handler *eh=0, ACE_Reactor_Mask m=ACE_Event_Handler::NULL_MASK, bool is_suspended=false, bool is_controlled=false)
 Constructor to set up defaults. More...
 

Public Attributes

ACE_Event_Handlerevent_handler
 The event handler. More...
 
ACE_Reactor_Mask mask
 The event mask for the above event handler. More...
 
bool suspended
 Flag that states whether or not the event handler is suspended. More...
 
bool controlled
 Flag to say whether or not this handle is registered with epoll. More...
 

Detailed Description

Struct that collects event registration information for a handle.

Internal use only

This struct merely provides a means to associate an event mask with an event handler. Such an association is needed since it is not possible to retrieve the event mask from the "interest set" stored in the `/dev/poll' or `/dev/epoll' driver. Without this external association, it would not be possible keep track of the event mask for a given event handler when suspending it or resuming it.

Note
An ACE_Handle_Set is not used since the number of handles may exceed its capacity (ACE_DEFAULT_SELECT_REACTOR_SIZE).

Constructor & Destructor Documentation

ACE_Dev_Poll_Reactor::Event_Tuple::Event_Tuple ( ACE_Event_Handler eh = 0,
ACE_Reactor_Mask  m = ACE_Event_Handler::NULL_MASK,
bool  is_suspended = false,
bool  is_controlled = false 
)
inline

Constructor to set up defaults.

Member Data Documentation

bool ACE_Dev_Poll_Reactor::Event_Tuple::controlled

Flag to say whether or not this handle is registered with epoll.

ACE_Event_Handler* ACE_Dev_Poll_Reactor::Event_Tuple::event_handler

The event handler.

ACE_Reactor_Mask ACE_Dev_Poll_Reactor::Event_Tuple::mask

The event mask for the above event handler.

bool ACE_Dev_Poll_Reactor::Event_Tuple::suspended

Flag that states whether or not the event handler is suspended.


The documentation for this struct was generated from the following files: