blob: b4900377b9e7ceaaa57bf0a85ca844fa935a5170 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// $Id$
#ifndef TAO_BUG_2494_REGRESSION_TEST_I_H
#define TAO_BUG_2494_REGRESSION_TEST_I_H
#include "testS.h"
#include "ace/Synch.h"
/**
* Simpler Server implementation
*
* Implements the Simple_Server interface in test.idl
*/
class Simple_Server_i : public POA_Simple_Server, public ACE_Event_Handler
{
public:
Simple_Server_i (CORBA::ORB_ptr orb);
// ctor
// = The Simple_Server methods.
char *test_method (Simple_Server_ptr objref);
virtual void client_done ();
void shutdown ();
virtual int handle_timeout (const ACE_Time_Value ¤t_time,
const void *act = 0);
private:
CORBA::ORB_var orb_;
// The ORB
TAO_SYNCH_MUTEX lock_;
TAO_SYNCH_CONDITION cond_;
bool timer_registed_;
};
#if defined(__ACE_INLINE__)
#include "test_i.inl"
#endif /* __ACE_INLINE__ */
#endif /* TAO_BUG_2494_REGRESSION_TEST_I_H */
|