mirror of https://github.com/flysand7/ciabatta.git
headers (3)
This commit is contained in:
parent
a35716e34e
commit
3b34ade36e
|
@ -1,7 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdatomic.h>
|
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#define _Thread_local __declspec(thread)
|
#define _Thread_local __declspec(thread)
|
||||||
#endif
|
#endif
|
||||||
|
@ -38,7 +36,7 @@
|
||||||
// Done to handle recursive mutexes
|
// Done to handle recursive mutexes
|
||||||
unsigned long recursion;
|
unsigned long recursion;
|
||||||
unsigned long owner;
|
unsigned long owner;
|
||||||
atomic_int counter;
|
_Atomic(int) counter;
|
||||||
void* semaphore;
|
void* semaphore;
|
||||||
} mtx_t;
|
} mtx_t;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <stdatomic.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
Loading…
Reference in New Issue