29 lines
454 B
C++
29 lines
454 B
C++
// Copyright (C) 2012 Jérôme Leclercq
|
|
// This file is part of the "Nazara Engine".
|
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
|
|
|
#pragma once
|
|
|
|
#ifndef NAZARA_LOCK_HPP
|
|
#define NAZARA_LOCK_HPP
|
|
|
|
#define NAZARA_LOCK
|
|
|
|
#include <Nazara/Prerequesites.hpp>
|
|
|
|
class NzMutex;
|
|
|
|
class NAZARA_API NzLock
|
|
{
|
|
public:
|
|
NzLock(NzMutex& mutex);
|
|
~NzLock();
|
|
|
|
private:
|
|
NzMutex& m_mutex;
|
|
};
|
|
|
|
#undef NAZARA_LOCK
|
|
|
|
#endif // NAZARA_LOCK_HPP
|