00001 // -*- C++ -*- 00002 // 00003 // $Id: Consumer.inl 87253 2009-10-28 23:29:32Z dai_y $ 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 ACE_INLINE 00008 TAO_Notify_Consumer::Request_Queue& 00009 TAO_Notify_Consumer::pending_events() 00010 { 00011 ACE_ASSERT( pending_events_.get() != 0 ); 00012 return *pending_events_; 00013 } 00014 00015 ACE_INLINE CORBA::Boolean 00016 TAO_Notify_Consumer::is_suspended (void) 00017 { 00018 return this->is_suspended_; 00019 } 00020 00021 ACE_INLINE void 00022 TAO_Notify_Consumer::suspend (void) 00023 { 00024 this->is_suspended_ = 1; 00025 } 00026 00027 ACE_INLINE size_t 00028 TAO_Notify_Consumer::pending_count (void) 00029 { 00030 return this->pending_events_->size(); 00031 } 00032 00033 00034 TAO_END_VERSIONED_NAMESPACE_DECL