refc_rwlock.cpp

00001 
00002 /***************************************************************************
00003  *  refc_rwlock.cpp - Read Write Lock with reference counter
00004  *
00005  *  Generated: Fri Oct 27 17:28:04 2006
00006  *  Copyright  2006  Tim Niemueller [www.niemueller.de]
00007  *
00008  ****************************************************************************/
00009 
00010 /*  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version. A runtime exception applies to
00014  *  this software (see LICENSE.GPL_WRE file mentioned below for details).
00015  *
00016  *  This program is distributed in the hope that it will be useful,
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  *  GNU Library General Public License for more details.
00020  *
00021  *  Read the full text in the LICENSE.GPL_WRE file in the doc directory.
00022  */
00023 
00024 #include <core/threading/refc_rwlock.h>
00025 
00026 namespace fawkes {
00027 
00028 /** @class RefCountRWLock core/threading/refc_rwlock.h
00029  * Read/write lock with reference counting.
00030  * This class is a combination of ReadWriteLock and RefCount. A reference count
00031  * is maintained for the class to allow for automatic destruction when the last
00032  * user calls unref(). The class otherwise acts as a normal ReadWriteLock, you
00033  * just should not delete the instance but rather unref() it.
00034  * @see ReadWriteLock
00035  * @see RefCount
00036  * @ingroup Threading
00037  * @ingroup FCL
00038  * @author Tim Niemueller
00039  */
00040 
00041 /** Constructor.
00042  * @param policy Policy, see ReadWriteLock::ReadWriteLock() for more info on this.
00043  */
00044 RefCountRWLock::RefCountRWLock(ReadWriteLock::ReadWriteLockPolicy policy)
00045   : ReadWriteLock(policy), RefCount()
00046 { 
00047 }
00048 
00049 /** Destructor */
00050 RefCountRWLock::~RefCountRWLock()
00051 {
00052 }
00053 
00054 
00055 } // end namespace fawkes

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1