aboutsummaryrefslogtreecommitdiff
path: root/src/3rdParty/efsw/Mutex.hpp
blob: d98ad17c23761f8c158c86fb8c11cd03e9e221f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef EFSW_MUTEX_HPP
#define EFSW_MUTEX_HPP

#include <efsw/base.hpp>

namespace efsw {

namespace Platform {
class MutexImpl;
}

/** Simple mutex class */
class Mutex {
  public:
	Mutex();

	~Mutex();

	/** Lock the mutex */
	void lock();

	/** Unlock the mutex */
	void unlock();

  private:
	Platform::MutexImpl* mMutexImpl;
};

} // namespace efsw

#endif