/*
* Mutex.h
* iphone-gl-app
*
* Created by John Ryland on 25/06/09.
* Copyright 2009 InvertedLogic. All rights reserved.
*
*/
#ifndef MUTEX_H
#define MUTEX_H
class Mutex
{
public:
class MutexAutoLock
{
public:
MutexAutoLock(Mutex *mutex); // locks the mutex
~MutexAutoLock(); // unlocks the mutex
private:
Mutex *autoLockMutex;
};
Mutex();
~Mutex();
MutexAutoLock lock();
private:
void *dptr;
};
#endif // MUTEX_H