2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
5 TAO::CSD::TP_Request::TP_Request(PortableServer::Servant servant,
6 TP_Servant_State* servant_state)
10 servant_state_(servant_state, false)
12 this->servant_->_add_ref ();
18 TAO::CSD::TP_Request::prepare_for_queue()
20 this->prepare_for_queue_i();
25 PortableServer::Servant
26 TAO::CSD::TP_Request::servant()
28 // Used for chaining so we do not return a new "copy".
29 return this->servant_.in();
35 TAO::CSD::TP_Request::is_ready() const
37 if (this->servant_state_.is_nil())
39 // This means that the serialization of servants is off.
40 // We always answer true here to indicate that the servant is
45 return !this->servant_state_->busy_flag();
51 TAO::CSD::TP_Request::mark_as_busy()
53 if (!this->servant_state_.is_nil())
55 this->servant_state_->busy_flag(true);
62 TAO::CSD::TP_Request::mark_as_ready()
64 if (!this->servant_state_.is_nil())
66 this->servant_state_->busy_flag(false);
73 TAO::CSD::TP_Request::is_target(PortableServer::Servant servant)
75 // Compare pointers. Return true only if these are the exact same object.
76 return (servant == this->servant_.in());
82 TAO::CSD::TP_Request::dispatch()
91 TAO::CSD::TP_Request::cancel()
96 TAO_END_VERSIONED_NAMESPACE_DECL