blob: 2271320207e6ac0db3e4646907cf3e714c733f60 (
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
43
44
45
46
47
48
49
50
51
52
|
//
// $Id$
//
#ifndef CLIENT_LEAKS_STARTUP_CALLBACK_H
#define CLIENT_LEAKS_STARTUP_CALLBACK_H
#include "ace/pre.h"
#include "TestS.h"
#if defined (_MSC_VER)
# if (_MSC_VER >= 1200)
# pragma warning(push)
# endif /* _MSC_VER >= 1200 */
# pragma warning (disable:4250)
#endif /* _MSC_VER */
/// Implement the Test::Startup_Callback interface
class Startup_Callback
: public virtual POA_Test::Startup_Callback
, public virtual PortableServer::RefCountServantBase
{
public:
/// Constructor
Startup_Callback (void);
/// Return 1 if the process has started already
/**
* If the process has started then <the_process> returns the object
* reference for the new process
*/
int process_has_started (Test::Process_out the_process);
// = The skeleton methods
virtual void started (Test::Process_ptr the_process
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
private:
/// Synchronize changes to the internal data
TAO_SYNCH_MUTEX mutex_;
/// Store the process.
Test::Process_var process_;
};
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma warning(pop)
#endif /* _MSC_VER */
#include "ace/post.h"
#endif /* CLIENT_LEAKS_STARTUP_CALLBACK_H */
|