www.pudn.com > DVBPlayer.rar > mutex.h, change:2004-07-06,size:283b




#ifndef MUTEX_H
#define MUTEX_H

#include <windows.h>

#define WAIT_FOREVER INFINITE

class Mutex {

public:
	Mutex(bool createOwned = false);
	~Mutex();


	bool Acquire(unsigned long timeout = WAIT_FOREVER);
	void Release();


private:
	HANDLE m_mutex;	

};

#endif /* MUTEX_H */