diff options
Diffstat (limited to 'trunk/TAO/orbsvcs/orbsvcs/Notify/Event.inl')
-rw-r--r-- | trunk/TAO/orbsvcs/orbsvcs/Notify/Event.inl | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/trunk/TAO/orbsvcs/orbsvcs/Notify/Event.inl b/trunk/TAO/orbsvcs/orbsvcs/Notify/Event.inl new file mode 100644 index 00000000000..36bdd57e0f5 --- /dev/null +++ b/trunk/TAO/orbsvcs/orbsvcs/Notify/Event.inl @@ -0,0 +1,43 @@ +// -*- C++ -*- +// +// $Id$ + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_INLINE const TAO_Notify_Property_Short& +TAO_Notify_Event::priority (void) const +{ + return this->priority_; +} + +ACE_INLINE const TAO_Notify_Property_Time& +TAO_Notify_Event::timeout (void) const +{ + return this->timeout_; +} + +ACE_INLINE const TAO_Notify_Property_Boolean& +TAO_Notify_Event::reliable (void) const +{ + return this->reliable_; +} + +ACE_INLINE +TAO_Notify_Event* +TAO_Notify_Event::queueable_copy (ACE_ENV_SINGLE_ARG_DECL) const +{ + if ( is_on_heap_ ) + { + return const_cast< TAO_Notify_Event* >( this ); + } + else if (this->clone_.get() == 0) + { + TAO_Notify_Event* copied = this->copy (ACE_ENV_SINGLE_ARG_PARAMETER); + ACE_CHECK_RETURN(0); + copied->is_on_heap_ = true; + this->clone_.reset( copied ); + } + return this->clone_.get(); +} + +TAO_END_VERSIONED_NAMESPACE_DECL |