#include <Dev_Poll_Reactor.h>
Collaboration diagram for ACE_Dev_Poll_Handler_Guard:
Public Methods | |
ACE_Dev_Poll_Handler_Guard (ACE_Dev_Poll_Reactor_Handler_Repository &repository, ACE_HANDLE handle) | |
The constructor increments the reference count on the event handler corresponding to the given handle. More... | |
~ACE_Dev_Poll_Handler_Guard (void) | |
The destructor decrements the reference count on the event handler corresponding to the given handle. More... | |
Private Attributes | |
ACE_Dev_Poll_Reactor_Handler_Repository & | repository_ |
Reference to the handler repository containing the event handler used during the upcall. More... | |
ACE_HANDLE | handle_ |
Handle corresponding to the event being dispatched. More... |
This class makes the reference count manipulation that occurs during an upcall exception-safe. Prior to dispatching the event handler, the reference count is increased. Once the upcall for the given event handler is complete, its reference count will be decreased.
|
The constructor increments the reference count on the event handler corresponding to the given handle.
|
|
The destructor decrements the reference count on the event handler corresponding to the given handle.
|
|
Handle corresponding to the event being dispatched.
|
|
Reference to the handler repository containing the event handler used during the upcall.
|