feature: add internal header for mutex and condition variable structures
This commit is contained in:
parent
cd36e689a6
commit
2cdc7ee455
2 changed files with 19 additions and 9 deletions
17
Source/DrangPlatform/Source/win32/sync/internal.h
Normal file
17
Source/DrangPlatform/Source/win32/sync/internal.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
struct drang_mutex
|
||||
{
|
||||
CRITICAL_SECTION cs;
|
||||
bool initialized;
|
||||
};
|
||||
|
||||
struct drang_cond
|
||||
{
|
||||
CONDITION_VARIABLE cv;
|
||||
bool initialized;
|
||||
};
|
||||
|
|
@ -1,16 +1,9 @@
|
|||
#include <drang/alloc.h>
|
||||
#include <drang/sync.h>
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <stdbool.h>
|
||||
#include <windows.h>
|
||||
#include "internal.h"
|
||||
|
||||
|
||||
|
||||
struct drang_mutex
|
||||
{
|
||||
CRITICAL_SECTION cs;
|
||||
bool initialized;
|
||||
};
|
||||
|
||||
size_t drang_mutex_size(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue