diff options
Diffstat (limited to 'ace/Proactor.inl')
-rw-r--r-- | ace/Proactor.inl | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/ace/Proactor.inl b/ace/Proactor.inl new file mode 100644 index 00000000000..c4c29697efc --- /dev/null +++ b/ace/Proactor.inl @@ -0,0 +1,75 @@ +/* -*- C++ -*- */ +// $Id$ + +ACE_INLINE int +ACE_Proactor::run_event_loop (void) +{ + ACE_TRACE ("ACE_Proactor::run_event_loop"); + ACE_Proactor *p = ACE_Proactor::instance (); + + if (p == 0) + return -1; + + return p->proactor_run_event_loop (ACE_Proactor::check_reconfiguration); +} + +ACE_INLINE int +ACE_Proactor::run_event_loop (ACE_Time_Value &tv) +{ + ACE_TRACE ("ACE_Proactor::run_event_loop (tv)"); + ACE_Proactor *p = ACE_Proactor::instance (); + + if (p == 0) + return -1; + + return p->proactor_run_event_loop + (tv, ACE_Proactor::check_reconfiguration); +} + +ACE_INLINE int +ACE_Proactor::reset_event_loop(void) +{ + ACE_TRACE ("ACE_Proactor::reset_event_loop"); + ACE_Proactor *p = ACE_Proactor::instance (); + + if (p == 0) + return -1; + + return p->proactor_reset_event_loop (); +} + +ACE_INLINE int +ACE_Proactor::end_event_loop (void) +{ + ACE_TRACE ("ACE_Proactor::end_event_loop"); + ACE_Proactor *p = ACE_Proactor::instance (); + + if (p == 0) + return -1; + + return p->proactor_end_event_loop (); +} + +ACE_INLINE int +ACE_Proactor::event_loop_done (void) +{ + ACE_TRACE ("ACE_Proactor::event_loop_done"); + ACE_Proactor *p = ACE_Proactor::instance (); + + if (p == 0) + return -1; + + return p->proactor_event_loop_done (); +} + +ACE_INLINE int +ACE_Proactor::post_wakeup_completions (int how_many) +{ + ACE_TRACE ("ACE_Proactor::post_wakeup_completions"); + ACE_Proactor *p = ACE_Proactor::instance (); + + if (p == 0) + return -1; + + return p->proactor_post_wakeup_completions (how_many); +} |