00001 /*************************************************************************** 00002 LOW_objectSynchronizer.cpp - description 00003 ------------------- 00004 begin : Sat Oct 4 2003 00005 copyright : (C) 2003 by Harald Roelle 00006 email : roelle@informatik.uni-muenchen.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 00019 #include "LOW_objectSynchronizer.h" 00020 00021 00022 //===================================================================================== 00023 // 00024 // constructors 00025 // 00026 00027 LOW_objectSynchronizer::LOW_objectSynchronizer() 00028 { 00029 writeLockHolder = 0; 00030 objectSyncRwlock = LOW_thread_Factory::new_rwlock(); 00031 } 00032 00033 00034 LOW_objectSynchronizer::LOW_objectSynchronizer( const LOW_objectSynchronizer &/*inObjectSynchronizer*/) 00035 { 00036 writeLockHolder = 0; 00037 objectSyncRwlock = LOW_thread_Factory::new_rwlock(); 00038 } 00039 00040 00041 LOW_objectSynchronizer::~LOW_objectSynchronizer() 00042 { 00043 delete objectSyncRwlock; 00044 } 00045 00046 00047 //===================================================================================== 00048 // 00049 // operators 00050 // 00051 00052 00053 LOW_objectSynchronizer& LOW_objectSynchronizer::operator= ( const LOW_objectSynchronizer &inRightSide) 00054 { 00055 if ( this == &inRightSide ) // do nothing on self assignment 00056 return *this; 00057 00058 delete objectSyncRwlock; 00059 objectSyncRwlock = LOW_thread_Factory::new_rwlock(); 00060 00061 return *this; 00062 }