EHS/include/System/Mutex_PT.h

32 lines
459 B
C
Raw Normal View History

2023-12-17 03:29:08 -08:00
#pragma once
2023-12-17 15:00:08 -08:00
#include "EHS.h"
2023-12-17 03:29:08 -08:00
#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;
};
}