Reactor Class Reference
#include <Reactor.h>
List of all members.
Detailed Description
Reactor is the implementation of a event demultiplexing and dispatching functionality. It also allows for registration for timer events. Registered timeout handlers are notified about the expiration of the timer by invoking their on_timer_expire method.
- Author:
- Michael Kircher
Prashant Jain
- Version:
- 1.0
Member Function Documentation
| Reactor * Reactor::instance |
( |
|
) |
[static] |
|
| void Reactor::register_timer |
( |
TimeBase::TimeT |
time, |
|
|
Event_Handler * |
handler, |
|
|
Lease_ptr |
lease |
|
) |
[inline] |
|
|
|
Allows handlers to register for timeouts.
- Parameters:
-
| time | When the timout should occur. |
| handler | The handler to register. |
| lease | The associated lease. |
|
| void Reactor::unregister_timer |
( |
Event_Handler * |
handler, |
|
|
Lease_ptr |
lease |
|
) |
[inline] |
|
|
|
Allows to unregister handlers based on the lease as unique ID.
- Parameters:
-
| handler | The registered handler. |
| lease | The associated lease. |
|
The documentation for this class was generated from the following file:
These pages document the source code of the patterns Lookup, Eager Acquisition, and Leasing.
Copyright 2004 John Wiley and Sons. All Rights Reserved.