00001 // -*- C++ -*- 00002 // 00003 // $Id: ID_Factory.inl 69353 2005-11-14 22:03:50Z ossama $ 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