00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Wait_On_Reactor.h 00006 * 00007 * $Id: Wait_On_Reactor.h 69153 2005-11-02 11:03:27Z ossama $ 00008 * 00009 * @author Alexander Babu Arulanthu <alex@cs.wustl.edu> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_WAIT_ON_REACTOR_H 00014 #define TAO_WAIT_ON_REACTOR_H 00015 00016 #include /**/ "ace/pre.h" 00017 00018 #include "tao/Wait_Strategy.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 # pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00025 00026 /** 00027 * @class TAO_Wait_On_Reactor 00028 * 00029 * @brief Wait on the Reactor. Happens in s Single Threaded client 00030 * environment. 00031 * 00032 */ 00033 class TAO_Wait_On_Reactor : public TAO_Wait_Strategy 00034 { 00035 00036 public: 00037 /// Constructor. 00038 TAO_Wait_On_Reactor (TAO_Transport *transport); 00039 00040 /// Destructor. 00041 virtual ~TAO_Wait_On_Reactor (void); 00042 00043 // = Documented in TAO_Wait_Strategy. 00044 00045 virtual int wait (ACE_Time_Value *max_wait_time, 00046 TAO_Synch_Reply_Dispatcher &rd); 00047 virtual int register_handler (void); 00048 virtual bool non_blocking (void) const; 00049 virtual bool can_process_upcalls (void) const; 00050 }; 00051 00052 TAO_END_VERSIONED_NAMESPACE_DECL 00053 00054 #include /**/ "ace/post.h" 00055 00056 #endif /* TAO_WAIT_ON_REACTOR_H */