aboutsummaryrefslogtreecommitdiff
path: root/src/3rdParty/efsw/platform/posix/MutexImpl.hpp
blob: a33d827966f4f7b11dc2fa62b96a9a9bf3f35cc0 (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
#ifndef EFSW_MUTEXIMPLPOSIX_HPP
#define EFSW_MUTEXIMPLPOSIX_HPP

#include <efsw/base.hpp>

#if defined( EFSW_PLATFORM_POSIX )

#include <pthread.h>

namespace efsw { namespace Platform {

class MutexImpl {
  public:
	MutexImpl();

	~MutexImpl();

	void lock();

	void unlock();

  private:
	pthread_mutex_t mMutex;
};

}} // namespace efsw::Platform

#endif

#endif