Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

RMCast_Copy_On_Write.i

Go to the documentation of this file.
00001 // $Id: RMCast_Copy_On_Write.i,v 1.1.1.1 2001/12/04 14:33:17 chad Exp $
00002 
00003 template<class COLLECTION, class ITERATOR> ACE_INLINE
00004 
00005 ACE_RMCast_Copy_On_Write_Collection<COLLECTION,ITERATOR>::    ACE_RMCast_Copy_On_Write_Collection (void)
00006       :  refcount_ (1)
00007 {
00008 }
00009 
00010 // ****************************************************************
00011 
00012 template<class COLLECTION, class ITERATOR> ACE_INLINE
00013 
00014 ACE_RMCast_Copy_On_Write_Read_Guard<COLLECTION,ITERATOR>::    ACE_RMCast_Copy_On_Write_Read_Guard (Container &container)
00015   : collection (0)
00016   , mutex_ (container.mutex_)
00017 {
00018   ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->mutex_);
00019   this->collection = container.collection_;
00020   this->collection->_incr_refcnt ();
00021 }
00022 
00023 template<class COLLECTION, class ITERATOR> ACE_INLINE
00024 
00025 ACE_RMCast_Copy_On_Write_Read_Guard<COLLECTION,ITERATOR>::    ~ACE_RMCast_Copy_On_Write_Read_Guard (void)
00026 {
00027   if (this->collection != 0)
00028     {
00029       ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->mutex_);
00030       this->collection->_decr_refcnt ();
00031     }
00032 }
00033 
00034 // ****************************************************************

Generated on Mon Jun 16 13:12:35 2003 for ACE_RMCast by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002