ACE_Select_Reactor_Impl Class ReferenceThis class simply defines how Select_Reactor's basic interface functions should look like and provides a common base class forSelect_Reactor using various locking mechanism.
More...
Inheritance diagram for ACE_Select_Reactor_Impl:
![]()
Collaboration diagram for ACE_Select_Reactor_Impl:
![]()
Detailed DescriptionThis class simply defines how Select_Reactor's basic interface functions should look like and provides a common base class forSelect_Reactor using various locking mechanism. Member Enumeration Documentation
Constructor & Destructor Documentation
Constructor.
Deny access since member-wise won't work...
Member Function Documentation
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_Impl.
Does the reactor allow the application to resume the handle on its own ie. can it pass on the control of handle resumption to the application. The select reactor has no handlers that can be resumed by the application. So return 0; Implements ACE_Reactor_Impl. Reimplemented in ACE_TP_Reactor.
Allow manipulation of the <wait_set_> mask and <ready_set_> mask.
Enqueue ourselves into the list of waiting threads at the appropriate point specified by <requeue_position_>. Implemented in ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >, and ACE_Select_Reactor_T< ACE_Select_Reactor_Token >.
Check to see if the <Event_Handler> associated with handle is suspended. Returns 0 if not, 1 if so. Implemented in ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >, and ACE_Select_Reactor_T< ACE_Select_Reactor_Token >.
When register/unregister occur, then we need to re-eval our wait/suspend/dispatch set. Reimplemented in ACE_TP_Reactor.
Controls/access whether the notify handler should renew the Select_Reactor's token or not.
Friends And Related Function Documentation
Member Data DocumentationTable that maps <ACE_HANDLEs> to <ACE_Event_Handler *>'s.
Tracks handles that are ready for dispatch from <select>.
Tracks handles that are waited for by <select>.
Tracks handles that are currently suspended.
Track HANDLES we are interested in for various events that must be dispatched *without* going through <select>.
Defined as a pointer to allow overriding by derived classes...
Handle signals without requiring global/static variables.
Callback object that unblocks the ACE_Select_Reactor if it's sleeping.
Keeps track of whether we should delete the timer queue (if we didn't create it, then we don't delete it).
Keeps track of whether we should delete the signal handler (if we didn't create it, then we don't delete it).
Keeps track of whether we need to delete the notify handler (if we didn't create it, then we don't delete it).
True if we've been initialized yet...
Restart the <handle_events> event-loop method automatically when <select> is interrupted via <EINTR>.
Position that the main ACE_Select_Reactor thread is requeued in the list of waiters during a <notify> callback. If this value == -1 we are requeued at the end of the list. Else if it's 0 then we are requeued at the front of the list. Else if it's > 1 then that indicates the number of waiters to skip over.
The original thread that created this Select_Reactor.
True if state has changed during dispatching of <ACE_Event_Handlers>, else false. This is used to determine whether we need to make another trip through the <Select_Reactor>'s <wait_for_multiple_events> loop.
If false then the Reactor will not mask the signals during the event dispatching. This is useful for applications that do not register any signal handlers and want to reduce the overhead introduce by the kernel level locks required to change the mask.
Determine whether we should renew Select_Reactor's token after handling the notification message.
The documentation for this class was generated from the following files: Generated on Mon Sep 15 07:16:42 2008 for ACE by ![]() |