summaryrefslogtreecommitdiff
path: root/ACE/TAO/tao/RTScheduling/Distributable_Thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/tao/RTScheduling/Distributable_Thread.cpp')
-rw-r--r--ACE/TAO/tao/RTScheduling/Distributable_Thread.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/ACE/TAO/tao/RTScheduling/Distributable_Thread.cpp b/ACE/TAO/tao/RTScheduling/Distributable_Thread.cpp
new file mode 100644
index 00000000000..7d8a6a0dc1f
--- /dev/null
+++ b/ACE/TAO/tao/RTScheduling/Distributable_Thread.cpp
@@ -0,0 +1,45 @@
+//$Id$
+
+#include "tao/RTScheduling/Distributable_Thread.h"
+#include "tao/ORB_Constants.h"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+TAO_DistributableThread::TAO_DistributableThread (void)
+ :state_ (RTScheduling::DistributableThread::ACTIVE)
+{
+}
+
+TAO_DistributableThread::~TAO_DistributableThread (void)
+{
+}
+
+void
+TAO_DistributableThread::cancel (void)
+{
+ this->state_ = RTScheduling::DistributableThread::CANCELLED;
+}
+
+RTScheduling::DistributableThread::DT_State
+TAO_DistributableThread::state (void)
+{
+ return this->state_;
+}
+
+RTScheduling::DistributableThread_ptr
+TAO_DistributableThread_Factory::create_DT (void)
+{
+ TAO_DistributableThread* DT = 0;
+
+ ACE_NEW_THROW_EX (DT,
+ TAO_DistributableThread,
+ CORBA::NO_MEMORY (
+ CORBA::SystemException::_tao_minor_code (
+ TAO::VMCID,
+ ENOMEM),
+ CORBA::COMPLETED_NO));
+
+ return DT;
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL