Files
NazaraEngine/include/Nazara/Core/Mutex.hpp
Lynix 15afde86c8 Rewritted ResourceLoader and moved it to core
Added creation constructor to NzImage
Added member function functor
Added option to build Nazara as one library (instead of many)
Fixed some 2011 copyrights
Made use of "using def = T" C++11 feature instead of some illigible
typedefs
Removed unused premake file
2012-08-18 01:46:01 +02:00

32 lines
569 B
C++

// Copyright (C) 2012 Jérôme Leclercq
// This file is part of the "Nazara Engine - Core module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_MUTEX_HPP
#define NAZARA_MUTEX_HPP
#include <Nazara/Prerequesites.hpp>
#include <Nazara/Core/NonCopyable.hpp>
class NzMutexImpl;
class NAZARA_API NzMutex : NzNonCopyable
{
friend class NzConditionVariable;
public:
NzMutex();
~NzMutex();
void Lock();
bool TryLock();
void Unlock();
private:
NzMutexImpl* m_impl;
};
#endif // NAZARA_MUTEX_HPP