ID_Factory.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // ID_Factory.inl,v 1.6 2005/11/14 22:03:49 ossama Exp
00004 
00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00006 
00007 ACE_INLINE TAO_Notify_Object::ID
00008 TAO_Notify_ID_Factory::id (void)
00009 {
00010   ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mtx_, 0);
00011   return ++seed_;
00012 }
00013 
00014 ACE_INLINE void
00015 TAO_Notify_ID_Factory::set_last_used (const TAO_Notify_Object::ID id)
00016 {
00017   ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mtx_);
00018   if (this->seed_ < id)
00019   {
00020     this->seed_ = id;
00021   }
00022 }
00023 
00024 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 13:24:12 2006 for TAO_CosNotification by doxygen 1.3.6