diff options
Diffstat (limited to 'TAO/tests/Client_Leaks/Startup_Callback.h')
-rw-r--r-- | TAO/tests/Client_Leaks/Startup_Callback.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/TAO/tests/Client_Leaks/Startup_Callback.h b/TAO/tests/Client_Leaks/Startup_Callback.h new file mode 100644 index 00000000000..9278b235cc2 --- /dev/null +++ b/TAO/tests/Client_Leaks/Startup_Callback.h @@ -0,0 +1,38 @@ +// +// $Id$ +// + +#ifndef CLIENT_LEAKS_STARTUP_CALLBACK_H +#define CLIENT_LEAKS_STARTUP_CALLBACK_H +#include /**/ "ace/pre.h" + +#include "TestS.h" + +/// Implement the Test::Startup_Callback interface +class Startup_Callback + : public virtual POA_Test::Startup_Callback +{ +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); + +private: + /// Synchronize changes to the internal data + TAO_SYNCH_MUTEX mutex_; + + /// Store the process. + Test::Process_var process_; +}; + +#include /**/ "ace/post.h" +#endif /* CLIENT_LEAKS_STARTUP_CALLBACK_H */ |