Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / Client_Leaks / Startup_Callback.h
blob58c36c5f15a7753f8958234b6a8d1f49727ae02d
2 #ifndef CLIENT_LEAKS_STARTUP_CALLBACK_H
3 #define CLIENT_LEAKS_STARTUP_CALLBACK_H
4 #include /**/ "ace/pre.h"
6 #include "TestS.h"
8 /// Implement the Test::Startup_Callback interface
9 class Startup_Callback
10 : public virtual POA_Test::Startup_Callback
12 public:
13 /// Constructor
14 Startup_Callback ();
16 /// Return 1 if the process has started already
17 /**
18 * If the process has started then <the_process> returns the object
19 * reference for the new process
21 int process_has_started (Test::Process_out the_process);
23 // = The skeleton methods
24 virtual void started (Test::Process_ptr the_process);
26 private:
27 /// Synchronize changes to the internal data
28 TAO_SYNCH_MUTEX mutex_;
30 /// Store the process.
31 Test::Process_var process_;
34 #include /**/ "ace/post.h"
35 #endif /* CLIENT_LEAKS_STARTUP_CALLBACK_H */