feature: add internal header for mutex and condition variable structures

This commit is contained in:
MechSlayer 2025-09-05 15:24:04 +02:00
parent cd36e689a6
commit 2cdc7ee455
2 changed files with 19 additions and 9 deletions

View 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;
};

View file

@ -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)
{