#include <Select_Reactor_Base.h>
Collaboration diagram for ACE_Select_Reactor_Handler_Repository:
Public Methods | |
ACE_Select_Reactor_Handler_Repository (ACE_Select_Reactor_Impl &) | |
Default "do-nothing" constructor. | |
~ACE_Select_Reactor_Handler_Repository (void) | |
dtor. | |
int | open (size_t size) |
Initialize a repository of the appropriate <size>. | |
int | close (void) |
Close down the repository. | |
ACE_Event_Handler* | find (ACE_HANDLE handle, size_t *index_p = 0) |
int | bind (ACE_HANDLE, ACE_Event_Handler *, ACE_Reactor_Mask) |
Bind the to the with the appropriate settings. | |
int | unbind (ACE_HANDLE, ACE_Reactor_Mask mask) |
Remove the binding of in accordance with the <mask>. | |
int | unbind_all (void) |
Remove all the tuples. | |
int | invalid_handle (ACE_HANDLE handle) |
int | handle_in_range (ACE_HANDLE handle) |
size_t | size (void) const |
Returns the current table size. | |
size_t | max_handlep1 (void) |
Maximum ACE_HANDLE value, plus 1. | |
void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Private Attributes | |
ACE_Select_Reactor_Impl& | select_reactor_ |
Reference to our <Select_Reactor>. | |
ssize_t | max_size_ |
Maximum number of handles. | |
int | max_handlep1_ |
The highest currently active handle, plus 1 (ranges between 0 and <max_size_>. | |
ACE_Event_Tuple* | event_handlers_ |
Friends | |
class | ACE_Select_Reactor_Handler_Repository_Iterator |
This class is necessary to shield differences between UNIX and Win32. In UNIX, is an int, whereas in Win32 it's a void *. This class hides all these details from the bulk of the code. All of these methods are called with the main <Select_Reactor> token lock held.
|
Default "do-nothing" constructor.
|
|
dtor.
|
|
Bind the to the with the appropriate settings.
|
|
Close down the repository.
|
|
Dump the state of an object.
|
|
Return the associated with . If <index_p> is non-0, then return the index location of the <handle>, if found. |
|
|
|
|
|
Maximum ACE_HANDLE value, plus 1.
|
|
Initialize a repository of the appropriate <size>.
|
|
Returns the current table size.
|
|
Remove the binding of in accordance with the <mask>.
|
|
Remove all the tuples.
|
|
|
|
Declare the dynamic allocation hooks.
|
|
The NT version implements this via a dynamically allocated array of . Since NT implements ACE_HANDLE as a void * we can't directly index into this array. Therefore, we just do a linear search (for now). Next, we'll modify things to use hashing or something faster... |
|
The highest currently active handle, plus 1 (ranges between 0 and <max_size_>.
|
|
Maximum number of handles.
|
|
Reference to our <Select_Reactor>.
|