Show
Ignore:
Timestamp:
03/21/12 18:36:20 (2 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/OpenThreads/ReadWriteMutex

    r12138 r13041  
    1 /* -*-c++-*- OpenThreads - Copyright (C) 1998-2007 Robert Osfield  
     1/* -*-c++-*- OpenThreads - Copyright (C) 1998-2007 Robert Osfield 
    22 * 
    3  * This library is open source and may be redistributed and/or modified under   
    4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or  
     3 * This library is open source and may be redistributed and/or modified under 
     4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 
    55 * (at your option) any later version.  The full license is in LICENSE file 
    66 * included with this distribution, and on the openscenegraph.org website. 
    7  *  
     7 * 
    88 * This library is distributed in the hope that it will be useful, 
    99 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1111 * OpenSceneGraph Public License for more details. 
    1212*/ 
     
    2323{ 
    2424    public: 
    25      
     25 
    2626        ReadWriteMutex(): 
    2727            _readCount(0) {} 
    28          
     28 
    2929        virtual ~ReadWriteMutex() {} 
    30      
     30 
    3131        virtual int readLock() 
    3232        { 
     
    6666            return _readWriteMutex.unlock(); 
    6767        } 
    68         
     68 
    6969    protected: 
    70      
     70 
    7171        ReadWriteMutex(const ReadWriteMutex&) {} 
    7272        ReadWriteMutex& operator = (const ReadWriteMutex&) { return *(this); } 
    7373 
    7474#if 0 
    75         ReentrantMutex  _readWriteMutex;         
     75        ReentrantMutex  _readWriteMutex; 
    7676        ReentrantMutex  _readCountMutex; 
    7777#else 
    78         OpenThreads::Mutex  _readWriteMutex;         
     78        OpenThreads::Mutex  _readWriteMutex; 
    7979        OpenThreads::Mutex  _readCountMutex; 
    80 #endif         
     80#endif 
    8181        unsigned int    _readCount; 
    82          
     82 
    8383}; 
    8484 
     
    8686{ 
    8787    public: 
    88      
     88 
    8989        ScopedReadLock(ReadWriteMutex& mutex):_mutex(mutex) { _mutex.readLock(); } 
    9090        ~ScopedReadLock() { _mutex.readUnlock(); } 
    91          
    92     protected:   
     91 
     92    protected: 
    9393        ReadWriteMutex& _mutex; 
    9494 
     
    100100{ 
    101101    public: 
    102      
     102 
    103103        ScopedWriteLock(ReadWriteMutex& mutex):_mutex(mutex) { _mutex.writeLock(); } 
    104104        ~ScopedWriteLock() { _mutex.writeUnlock(); } 
    105          
    106     protected:   
     105 
     106    protected: 
    107107        ReadWriteMutex& _mutex; 
    108108