#include <FlReactor.h>
Inheritance diagram for ACE_FlReactor:
Public Methods | |
ACE_FlReactor (size_t size=DEFAULT_SIZE, int restart=0, ACE_Sig_Handler *=0) | |
virtual | ~ACE_FlReactor (void) |
virtual long | schedule_timer (ACE_Event_Handler *event_handler, const void *arg, const ACE_Time_Value &delay, const ACE_Time_Value &interval) |
Schedule an ACE_Event_Handler that will expire after an amount of time. More... | |
virtual int | reset_timer_interval (long timer_id, const ACE_Time_Value &interval) |
Resets the interval of the timer represented by <timer_id> to <interval>, which is specified in relative time to the current <gettimeofday>. More... | |
virtual int | cancel_timer (ACE_Event_Handler *handler, int dont_call_handle_close=1) |
Cancel all Event_Handlers that match the address of <event_handler>. Returns number of handlers cancelled. More... | |
virtual int | cancel_timer (long timer_id, const void **arg=0, int dont_call_handle_close=1) |
Cancel the single Event_Handler that matches the <timer_id> value (which was returned from the schedule method). More... | |
Protected Methods | |
virtual int | register_handler_i (ACE_HANDLE handle, ACE_Event_Handler *handler, ACE_Reactor_Mask mask) |
Register a single <handler>. More... | |
virtual int | register_handler_i (const ACE_Handle_Set &handles, ACE_Event_Handler *handler, ACE_Reactor_Mask mask) |
Register a set of <handlers>. More... | |
virtual int | remove_handler_i (ACE_HANDLE handle, ACE_Reactor_Mask mask) |
Remove the <handler> associated with this <handle>. More... | |
virtual int | remove_handler_i (const ACE_Handle_Set &handles, ACE_Reactor_Mask) |
Remove a set of <handles>. More... | |
virtual int | wait_for_multiple_events (ACE_Select_Reactor_Handle_Set &, ACE_Time_Value *) |
Wait for events to occur. More... | |
Private Methods | |
void | reset_timeout (void) |
This method ensures there's an Fl timeout for the first timeout in the Reactor's Timer_Queue. More... | |
ACE_FlReactor (const ACE_FlReactor &) | |
Deny access since member-wise won't work... More... | |
ACE_FlReactor & | operator= (const ACE_FlReactor &) |
Static Private Methods | |
void | fl_io_proc (int fd, void *) |
void | fl_timeout_proc (void *) |
As many other GUI toolkits FL supports a minimal set of callbacks to handle event demultiplexing, namely simple methods to add file descriptors to the event demuxing set or timeout events. This class adapts this simple mechanisms so they are compatible with ACE's Reactor.
|
|
|
|
|
Deny access since member-wise won't work...
|
|
Cancel the single Event_Handler that matches the <timer_id> value (which was returned from the schedule method). If arg is non-NULL then it will be set to point to the ``magic cookie'' argument passed in when the Event_Handler was registered. This makes it possible to free up the memory and avoid memory leaks. Returns 1 if cancellation succeeded and 0 if the <timer_id> wasn't found. Reimplemented from ACE_Reactor_Impl. |
|
Cancel all Event_Handlers that match the address of <event_handler>. Returns number of handlers cancelled.
Reimplemented from ACE_Reactor_Impl. |
|
|
|
|
|
|
|
Register a set of <handlers>.
Reimplemented from ACE_Select_Reactor_T. |
|
Register a single <handler>.
Reimplemented from ACE_Select_Reactor_T. |
|
Remove a set of <handles>.
Reimplemented from ACE_Select_Reactor_T. |
|
Remove the <handler> associated with this <handle>.
Reimplemented from ACE_Select_Reactor_T. |
|
This method ensures there's an Fl timeout for the first timeout in the Reactor's Timer_Queue.
|
|
Resets the interval of the timer represented by <timer_id> to <interval>, which is specified in relative time to the current <gettimeofday>. If <interval> is equal to <ACE_Time_Value::zero>, the timer will become a non-rescheduling timer. Returns 0 if successful, -1 if not. Reimplemented from ACE_Reactor_Impl. |
|
Schedule an ACE_Event_Handler that will expire after an amount of time. The return value of this method, a timer_id value, uniquely identifies the event_handler in the ACE_Reactor's internal list of timers. This timer_id value can be used to cancel the timer with the cancel_timer() call.
Reimplemented from ACE_Reactor_Impl. |
|
Wait for events to occur.
Reimplemented from ACE_Select_Reactor_T. |