mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-24 23:26:37 +00:00
25 lines
400 B
C++
25 lines
400 B
C++
#pragma once
|
|
|
|
#include "IGpMutex.h"
|
|
|
|
#include "GpWindows.h"
|
|
|
|
struct IGpAllocator;
|
|
|
|
class GpMutex_Win32 final : public IGpMutex
|
|
{
|
|
public:
|
|
void Destroy() override;
|
|
void Lock() override;
|
|
void Unlock() override;
|
|
|
|
static GpMutex_Win32 *Create(IGpAllocator *alloc);
|
|
|
|
private:
|
|
explicit GpMutex_Win32(IGpAllocator *alloc);
|
|
~GpMutex_Win32();
|
|
|
|
CRITICAL_SECTION m_critSection;
|
|
IGpAllocator *m_alloc;
|
|
};
|