32 lines
462 B
C++
32 lines
462 B
C++
#pragma once
|
|
|
|
#include "../EHS.h"
|
|
#include "BaseMutex.h"
|
|
|
|
#include <pthread.h>
|
|
|
|
namespace lwe
|
|
{
|
|
class Mutex : public BaseMutex
|
|
{
|
|
private:
|
|
pthread_mutex_t hdl;
|
|
|
|
public:
|
|
~Mutex() override;
|
|
|
|
Mutex();
|
|
|
|
Mutex(const Mutex& mutex);
|
|
|
|
Mutex& operator=(const Mutex& mutex);
|
|
|
|
void Initialize() override;
|
|
|
|
void UnInitialize() override;
|
|
|
|
void Lock() override;
|
|
|
|
void Unlock() override;
|
|
};
|
|
} |