#include <ID_Factory.h>
Public Member Functions | |
TAO_Notify_ID_Factory (void) | |
Constructor. | |
~TAO_Notify_ID_Factory () | |
Destructor. | |
TAO_Notify_Object::ID | id (void) |
void | set_last_used (const TAO_Notify_Object::ID id) |
Private Attributes | |
TAO_Notify_Object::ID | seed_ |
Can't use atomic op, because we added the set_last_used() method. | |
TAO_SYNCH_MUTEX | mtx_ |
Definition at line 35 of file ID_Factory.h.
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_ID_Factory::TAO_Notify_ID_Factory | ( | void | ) |
TAO_Notify_ID_Factory::~TAO_Notify_ID_Factory | ( | ) |
TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO_Notify_Object::ID TAO_Notify_ID_Factory::id | ( | void | ) |
Definition at line 8 of file ID_Factory.inl.
References ACE_GUARD_RETURN, seed_, and TAO_SYNCH_MUTEX.
Referenced by TAO_Notify_POA_Helper::activate(), TAO_Notify_FilterAdmin::add_filter(), and TAO_Notify_POA_Helper::get_unique_id().
00009 { 00010 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mtx_, 0); 00011 return ++seed_; 00012 }
ACE_INLINE void TAO_Notify_ID_Factory::set_last_used | ( | const TAO_Notify_Object::ID | id | ) |
Definition at line 15 of file ID_Factory.inl.
References ACE_GUARD, seed_, and TAO_SYNCH_MUTEX.
Referenced by TAO_Notify_POA_Helper::activate_with_id(), and TAO_Notify_FilterAdmin::load_child().
00016 { 00017 ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mtx_); 00018 if (this->seed_ < id) 00019 { 00020 this->seed_ = id; 00021 } 00022 }
TAO_SYNCH_MUTEX TAO_Notify_ID_Factory::mtx_ [private] |
Definition at line 51 of file ID_Factory.h.
Can't use atomic op, because we added the set_last_used() method.
Definition at line 50 of file ID_Factory.h.
Referenced by id(), and set_last_used().