ACE
6.3.3
|
This class gobbles up handles. More...
#include <Handle_Gobbler.h>
Public Member Functions | |
~ACE_Handle_Gobbler (void) | |
Destructor. Cleans up any remaining handles. More... | |
int | consume_handles (size_t n_handles_to_keep_available) |
int | free_handles (size_t n_handles) |
Free up n_handles. More... | |
void | close_remaining_handles (void) |
All remaining handles are closed. More... | |
Private Types | |
typedef ACE_Handle_Set | HANDLE_SET |
Private Attributes | |
HANDLE_SET | handle_set_ |
The container which holds the open descriptors. More... | |
This class gobbles up handles.
This is useful when we need to control the number of handles available for a process. This class is mostly used for testing purposes.
|
private |
|
inline |
Destructor. Cleans up any remaining handles.
|
inline |
All remaining handles are closed.
|
inline |
Handles are opened continously until the process runs out of them, and then <n_handles_to_keep_available> handles are closed (freed) thereby making them usable in the future.
|
inline |
Free up n_handles.
|
private |
The container which holds the open descriptors.