Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Bug_3531_Regression / test_i.h
blob9a9caf09eff3eadf8908b406c2ebed5a0f3ed07c
1 #ifndef TAO_BUG_2494_REGRESSION_TEST_I_H
2 #define TAO_BUG_2494_REGRESSION_TEST_I_H
4 #include "testS.h"
5 #include "ace/Synch.h"
7 /**
8 * Simpler Server implementation
10 * Implements the Simple_Server interface in test.idl
12 class Simple_Server_i : public POA_Simple_Server, public ACE_Event_Handler
14 public:
15 Simple_Server_i (CORBA::ORB_ptr orb);
16 // ctor
18 // = The Simple_Server methods.
19 char *test_method (Simple_Server_ptr objref);
21 virtual void client_done ();
23 void shutdown ();
25 virtual int handle_timeout (const ACE_Time_Value &current_time,
26 const void *act = 0);
28 private:
29 CORBA::ORB_var orb_;
30 // The ORB
31 TAO_SYNCH_MUTEX lock_;
32 TAO_SYNCH_CONDITION cond_;
33 bool timer_registed_;
36 #if defined(__ACE_INLINE__)
37 #include "test_i.inl"
38 #endif /* __ACE_INLINE__ */
40 #endif /* TAO_BUG_2494_REGRESSION_TEST_I_H */