00001 // -*- C++ -*- 00002 // 00003 // CEC_ProxyPushConsumer.i,v 1.6 2006/04/19 12:36:57 jwillemsen Exp 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 ACE_INLINE CORBA::Boolean 00008 TAO_CEC_ProxyPushConsumer::is_connected_i (void) const 00009 { 00010 return this->connected_; 00011 } 00012 00013 ACE_INLINE CORBA::Boolean 00014 TAO_CEC_ProxyPushConsumer::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::PushSupplier_ptr 00022 TAO_CEC_ProxyPushConsumer::supplier (void) const 00023 { 00024 ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); 00025 return CosEventComm::PushSupplier::_duplicate (this->supplier_.in ()); 00026 } 00027 00028 ACE_INLINE void 00029 TAO_CEC_ProxyPushConsumer::supplier_i (CosEventComm::PushSupplier_ptr supplier) 00030 { 00031 this->supplier_ = supplier; 00032 } 00033 00034 ACE_INLINE void 00035 TAO_CEC_ProxyPushConsumer::supplier (CosEventComm::PushSupplier_ptr supplier) 00036 { 00037 ACE_GUARD (ACE_Lock, ace_mon, *this->lock_); 00038 00039 this->supplier_i (supplier); 00040 } 00041 00042 // **************************************************************** 00043 00044 ACE_INLINE bool 00045 TAO_CEC_ProxyPushConsumer_Guard::locked (void) const 00046 { 00047 return this->locked_; 00048 } 00049 00050 TAO_END_VERSIONED_NAMESPACE_DECL