Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10577 in orxonox.OLD for branches/cleanup/src/lib/util/threads


Ignore:
Timestamp:
Feb 7, 2007, 9:31:36 PM (18 years ago)
Author:
bensch
Message:

better incls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cleanup/src/lib/util/threads/mutex_locker.h

    r10576 r10577  
    88
    99  //! A Class that locks a Mutex within its scope
    10   class MutexLock
     10  class MutexLocker
    1111  {
    1212  public:
    1313    //! Locks the Mutex mutex in this Scope.
    14     MutexLock(Mutex* mutex) { SDL_mutexP(mutex->getMutex()); this->mutex = mutex; };
    15     ~MutexLock() { SDL_mutexV(mutex->getMutex()); };
     14    MutexLocker(Mutex* mutex) { SDL_mutexP(mutex->getMutex()); this->mutex = mutex; };
     15    ~MutexLocker() { SDL_mutexV(mutex->getMutex()); };
    1616  private:
    1717    Mutex* mutex;         //!< The Mutex to lock.
Note: See TracChangeset for help on using the changeset viewer.