00001 // -*- C++ -*- 00002 // 00003 // CEC_ProxyPullSupplier.i,v 1.3 2005/11/10 06:47:23 ossama Exp 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 ACE_INLINE CORBA::Boolean 00008 TAO_CEC_ProxyPullSupplier::is_connected_i (void) const 00009 { 00010 return this->connected_; 00011 } 00012 00013 ACE_INLINE CORBA::Boolean 00014 TAO_CEC_ProxyPullSupplier::is_connected (void) const 00015 { 00016 ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); 00017 00018 return this->is_connected_i (); 00019 } 00020 00021 ACE_INLINE CosEventComm::PullConsumer_ptr 00022 TAO_CEC_ProxyPullSupplier::consumer (void) const 00023 { 00024 ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); 00025 00026 return this->consumer_.in (); 00027 } 00028 00029 ACE_INLINE void 00030 TAO_CEC_ProxyPullSupplier::consumer_i (CosEventComm::PullConsumer_ptr consumer) 00031 { 00032 this->consumer_ = consumer; 00033 } 00034 00035 ACE_INLINE void 00036 TAO_CEC_ProxyPullSupplier::consumer (CosEventComm::PullConsumer_ptr consumer) 00037 { 00038 ACE_GUARD (ACE_Lock, ace_mon, *this->lock_); 00039 00040 this->consumer_i (consumer); 00041 } 00042 00043 TAO_END_VERSIONED_NAMESPACE_DECL