Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# ACE_Dev_Poll_Handler_Guard Class Reference

Class used to make event handler reference count manipulation exception-safe. More...

`#include <Dev_Poll_Reactor.h>`

Collaboration diagram for ACE_Dev_Poll_Handler_Guard:

[legend]
List of all members.

## Public Methods
| ACE_Dev_Poll_Handler_Guard (ACE_Dev_Poll_Reactor_Handler_Repository &repository, ACE_HANDLE handle)
| Constructor.
| ~ACE_Dev_Poll_Handler_Guard (void)
| Destructor.
## Private Attributes
ACE_Dev_Poll_Reactor_Handler_Repository & | repository_
ACE_HANDLE | handle_
| Handle corresponding to the event being dispatched.

## Detailed Description

Class used to make event handler reference count manipulation exception-safe.

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.

## Constructor & Destructor Documentation

ACE_INLINE ACE_Dev_Poll_Handler_Guard::ACE_Dev_Poll_Handler_Guard | ( | ACE_Dev_Poll_Reactor_Handler_Repository & | repository,
|  | ACE_HANDLE | handle
| ) |

| Constructor. The constructor increments the reference count on the event handler corresponding to the given handle.

ACE_INLINE ACE_Dev_Poll_Handler_Guard::~ACE_Dev_Poll_Handler_Guard | ( | void |  | ) |

| Destructor. The destructor decrements the reference count on the event handler corresponding to the given handle.

## Member Data Documentation

ACE_HANDLE ACE_Dev_Poll_Handler_Guard::handle_`[private]`

| Handle corresponding to the event being dispatched.

ACE_Dev_Poll_Reactor_Handler_Repository& ACE_Dev_Poll_Handler_Guard::repository_`[private]`

| Reference to the handler repository containing the event handler used during the upcall.

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

- /export2/deucetmp/bala/release_try/ACE_wrappers/ace/Dev_Poll_Reactor.h
- /export2/deucetmp/bala/release_try/ACE_wrappers/ace/Dev_Poll_Reactor.inl