Changeset 10:28e53f391f9a in rrlib_thread


Ignore:
Timestamp:
19.05.2013 00:28:41 (6 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Replaced boost::noncopyable with rrlib::util::tNoncopyable.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • internal/tLockStack.cpp

    r5 r10  
    8686 * since variables would need to be volatile etc.) 
    8787 */ 
    88 struct tLockStackData : boost::noncopyable 
     88struct tLockStackData : private util::tNoncopyable 
    8989{ 
    9090  /*! Stack entries */ 
     
    181181    else if (lock->locked_ordered && lock->locked_simple) 
    182182    { 
    183       bool found = false; 
    184183      for (auto it = s->entries.begin(); it < s->entries.end(); it++) 
    185184      { 
  • tConditionVariable.cpp

    r5 r10  
    183183 * This object increments value while it exists 
    184184 */ 
    185 struct tTemporalIncrement : boost::noncopyable 
     185struct tTemporalIncrement : private util::tNoncopyable 
    186186{ 
    187187  int& value; 
  • tConditionVariable.h

    r9 r10  
    8080 * If you need "application time" (that is possibly adjusted during wait due to stretching factor change; see rrlib/time/time.h), use tThread::Wait(). 
    8181 */ 
    82 class tConditionVariable : boost::noncopyable 
     82class tConditionVariable : private util::tNoncopyable 
    8383{ 
    8484 
  • tLock.h

    r8 r10  
    8585 *  RRLIB_THREAD_ENFORCE_LOCK_ORDER is enabled) 
    8686 */ 
    87 class tLock : boost::noncopyable 
     87class tLock : private util::tNoncopyable 
    8888{ 
    8989  friend class internal::tLockStack; 
  • tMutex.h

    r0 r10  
    4141//---------------------------------------------------------------------- 
    4242#include <mutex> 
    43 #include <boost/utility.hpp> 
     43#include "rrlib/util/tNoncopyable.h" 
    4444 
    4545//---------------------------------------------------------------------- 
     
    6767 * Simple Mutex. No Mutex may be acquired after a simple mutex. 
    6868 */ 
    69 class tMutex : boost::noncopyable 
     69class tMutex : private util::tNoncopyable 
    7070{ 
    7171  friend class tLock; 
  • tNoMutex.h

    r0 r10  
    4040// External includes (system with <>, local with "") 
    4141//---------------------------------------------------------------------- 
    42 #include <boost/utility.hpp> 
     42#include "rrlib/util/tNoncopyable.h" 
    4343 
    4444//---------------------------------------------------------------------- 
     
    6666 * Noop mutex. Can be useful as template parameter for certain classes to disable any internal locking. 
    6767 */ 
    68 class tNoMutex : boost::noncopyable 
     68class tNoMutex : private util::tNoncopyable 
    6969{ 
    7070//---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.