summaryrefslogtreecommitdiff
path: root/modules/CIAO/examples/DevGuideExamples/Messenger/Runnable_exec_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/examples/DevGuideExamples/Messenger/Runnable_exec_i.cpp')
-rw-r--r--modules/CIAO/examples/DevGuideExamples/Messenger/Runnable_exec_i.cpp61
1 files changed, 61 insertions, 0 deletions
diff --git a/modules/CIAO/examples/DevGuideExamples/Messenger/Runnable_exec_i.cpp b/modules/CIAO/examples/DevGuideExamples/Messenger/Runnable_exec_i.cpp
new file mode 100644
index 00000000000..5227ea3d784
--- /dev/null
+++ b/modules/CIAO/examples/DevGuideExamples/Messenger/Runnable_exec_i.cpp
@@ -0,0 +1,61 @@
+// $Id$
+//
+// **** Code generated by the ****
+// **** Component Integrated ACE ORB (CIAO) CIDL Compiler ****
+// CIAO has been developed by:
+// Center for Distributed Object Computing
+// Washington University
+// St. Louis, MO
+// USA
+// http://www.cs.wustl.edu/~schmidt/doc-center.html
+// CIDL Compiler has been developed by:
+// Institute for Software Integrated Systems
+// Vanderbilt University
+// Nashville, TN
+// USA
+// http://www.isis.vanderbilt.edu/
+//
+// Information about CIAO is available at:
+// http://www.dre.vanderbilt.edu/CIAO
+
+#include "Runnable_exec_i.h"
+#include "ciao/CIAO_common.h"
+
+namespace CIAO_Messenger_Impl
+{
+ //==================================================================
+ // Facet Executor Implementation Class: Runnable_exec_i
+ //==================================================================
+
+ Runnable_exec_i::Runnable_exec_i ()
+ {
+ // initially in "stopped" state
+ this->stop();
+ }
+
+ Runnable_exec_i::~Runnable_exec_i (void)
+ {
+ // don't own anything
+ }
+
+ // Operations from ::Runnable
+
+ void
+ Runnable_exec_i::start ()
+ {
+ this->run_lock_.release();
+ }
+
+ void
+ Runnable_exec_i::stop ()
+ {
+ this->run_lock_.acquire();
+ }
+
+ TAO_SYNCH_MUTEX&
+ Runnable_exec_i::get_run_lock ()
+ {
+ return this->run_lock_;
+ }
+}
+