mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 18:14:12 +08:00
mdbx-windows: minor simplify MDBX_srwlock.
Change-Id: I1db8e7dab2a3c764fdbe64923cfaab238eacc77e
This commit is contained in:
parent
ecf214ca04
commit
f93cca3d14
12
src/osal.h
12
src/osal.h
@ -593,14 +593,12 @@ int mdbx_rpid_set(MDBX_env *env);
|
|||||||
int mdbx_rpid_clear(MDBX_env *env);
|
int mdbx_rpid_clear(MDBX_env *env);
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
typedef struct MDBX_srwlock {
|
typedef union MDBX_srwlock {
|
||||||
union {
|
struct {
|
||||||
struct {
|
long volatile readerCount;
|
||||||
long volatile readerCount;
|
long volatile writerCount;
|
||||||
long volatile writerCount;
|
|
||||||
};
|
|
||||||
RTL_SRWLOCK native;
|
|
||||||
};
|
};
|
||||||
|
RTL_SRWLOCK native;
|
||||||
} MDBX_srwlock;
|
} MDBX_srwlock;
|
||||||
|
|
||||||
typedef void(WINAPI *MDBX_srwlock_function)(MDBX_srwlock *);
|
typedef void(WINAPI *MDBX_srwlock_function)(MDBX_srwlock *);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user