summaryrefslogtreecommitdiff
path: root/TAO/tests/Client_Leaks/Startup_Callback.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Client_Leaks/Startup_Callback.cpp')
-rw-r--r--TAO/tests/Client_Leaks/Startup_Callback.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/TAO/tests/Client_Leaks/Startup_Callback.cpp b/TAO/tests/Client_Leaks/Startup_Callback.cpp
new file mode 100644
index 00000000000..341c89ead6e
--- /dev/null
+++ b/TAO/tests/Client_Leaks/Startup_Callback.cpp
@@ -0,0 +1,29 @@
+//
+// $Id$
+//
+#include "Startup_Callback.h"
+
+ACE_RCSID(Client_Leaks, Startup_Callback, "$Id$")
+
+Startup_Callback::Startup_Callback (void)
+{
+}
+
+int
+Startup_Callback::process_has_started (Test::Process_out the_process)
+{
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0);
+ if (!CORBA::is_nil (this->process_.in ()))
+ {
+ the_process = Test::Process::_duplicate (this->process_.in ());
+ return 1;
+ }
+ return 0;
+}
+
+void
+Startup_Callback::started (Test::Process_ptr process)
+{
+ ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_);
+ this->process_ = Test::Process::_duplicate (process);
+}