00001 //$Id: Distributable_Thread.cpp 76995 2007-02-11 12:51:42Z johnnyw $ 00002 00003 #include "tao/RTScheduling/Distributable_Thread.h" 00004 #include "tao/ORB_Constants.h" 00005 00006 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00007 00008 TAO_DistributableThread::TAO_DistributableThread (void) 00009 :state_ (RTScheduling::DistributableThread::ACTIVE) 00010 { 00011 } 00012 00013 TAO_DistributableThread::~TAO_DistributableThread (void) 00014 { 00015 } 00016 00017 void 00018 TAO_DistributableThread::cancel (void) 00019 { 00020 this->state_ = RTScheduling::DistributableThread::CANCELLED; 00021 } 00022 00023 RTScheduling::DistributableThread::DT_State 00024 TAO_DistributableThread::state (void) 00025 { 00026 return this->state_; 00027 } 00028 00029 RTScheduling::DistributableThread_ptr 00030 TAO_DistributableThread_Factory::create_DT (void) 00031 { 00032 TAO_DistributableThread* DT = 0; 00033 00034 ACE_NEW_THROW_EX (DT, 00035 TAO_DistributableThread, 00036 CORBA::NO_MEMORY ( 00037 CORBA::SystemException::_tao_minor_code ( 00038 TAO::VMCID, 00039 ENOMEM), 00040 CORBA::COMPLETED_NO)); 00041 00042 return DT; 00043 } 00044 00045 TAO_END_VERSIONED_NAMESPACE_DECL