Event handler used for unblocking the ACE_Dev_Poll_Reactor from its event loop.
More...
#include <Dev_Poll_Reactor.h>
List of all members.
Additional Inherited Members |
Detailed Description
Event handler used for unblocking the ACE_Dev_Poll_Reactor from its event loop.
This event handler is used internally by the ACE_Dev_Poll_Reactor as a means to allow a thread other then the one running the event loop to unblock the event loop.
Constructor & Destructor Documentation
ACE_Dev_Poll_Reactor_Notify::ACE_Dev_Poll_Reactor_Notify |
( |
void |
| ) |
|
Member Function Documentation
int ACE_Dev_Poll_Reactor_Notify::close |
( |
void |
| ) |
|
|
virtual |
Method called by ACE_Dev_Poll_Reactor to obtain one notification. THIS METHOD MUST BE CALLED WITH THE REACTOR TOKEN HELD!
- Returns:
- -1 on error, else 0 and
- nb has the notify to dispatch. Note that the contained event handler may be 0 if there were only wake-ups (no handlers to dispatch).
int ACE_Dev_Poll_Reactor_Notify::dispatch_notifications |
( |
int & |
number_of_active_handles, |
|
|
ACE_Handle_Set & |
rd_mask |
|
) |
| |
|
virtual |
Unimplemented method required by pure virtual method in abstract base class. This method's interface is not very compatibile with this Reactor's design. It's not clear why this method is pure virtual either.
Implements ACE_Reactor_Notify.
Handle one notify call represented in buffer. This could be because of a thread trying to unblock the Reactor_Impl.
Implements ACE_Reactor_Notify.
void ACE_Dev_Poll_Reactor_Notify::dump |
( |
void |
| ) |
const |
|
virtual |
int ACE_Dev_Poll_Reactor_Notify::handle_input |
( |
ACE_HANDLE |
handle | ) |
|
|
virtual |
void ACE_Dev_Poll_Reactor_Notify::max_notify_iterations |
( |
int |
iterations | ) |
|
|
virtual |
Set the maximum number of times that the handle_input method will iterate and dispatch the ACE_Event_Handlers that are passed in via the notify queue before breaking out of the event loop. By default, this is set to -1, which means "iterate until
the queue is empty." Setting this to a value like "1 or 2" will increase "fairness" (and thus prevent starvation) at the expense of slightly higher dispatching overhead.
Implements ACE_Reactor_Notify.
int ACE_Dev_Poll_Reactor_Notify::max_notify_iterations |
( |
void |
| ) |
|
|
virtual |
Get the maximum number of times that the handle_input method will iterate and dispatch the ACE_Event_Handlers that are passed in via the notify queue before breaking out of its event loop.
Implements ACE_Reactor_Notify.
Called by a thread when it wants to unblock the Reactor_Impl. This wakes up the Reactor_Impl if currently blocked. Pass over both the Event_Handler and the mask to allow the caller to dictate which Event_Handler method the Reactor_Impl will invoke. The ACE_Time_Value indicates how long to block trying to notify the Reactor_Impl. If timeout == 0, the caller will block until action is possible, else will wait until the relative time specified in *timeout elapses).
Implements ACE_Reactor_Notify.
ACE_HANDLE ACE_Dev_Poll_Reactor_Notify::notify_handle |
( |
void |
| ) |
|
|
virtual |
Returns the ACE_HANDLE of the notify pipe on which the reactor is listening for notifications so that other threads can unblock the Reactor_Impl.
Implements ACE_Reactor_Notify.
Purge any notifications pending in this reactor for the specified ACE_Event_Handler object. Returns the number of notifications purged. Returns -1 on error.
Implements ACE_Reactor_Notify.
Read one notify call on the handle into buffer. This could be because of a thread trying to unblock the Reactor_Impl.
Implements ACE_Reactor_Notify.
Member Data Documentation
int ACE_Dev_Poll_Reactor_Notify::max_notify_iterations_ |
|
protected |
Keeps track of the maximum number of times that the ACE_Dev_Poll_Reactor_Notify::handle_input method will iterate and dispatch the ACE_Event_Handlers that are passed in via the notify pipe before breaking out of its recv loop. By default, this is set to -1, which means "iterate until the pipe is empty."
ACE_Pipe ACE_Dev_Poll_Reactor_Notify::notification_pipe_ |
|
protected |
The documentation for this class was generated from the following files: