mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-20 23:08:56 +08:00
mdbx: workaround for Windows LockFileEx/WriteFile bug.
This resolves https://github.com/leo-yuriev/libmdbx/issues/25
This commit is contained in:
@@ -743,6 +743,8 @@ struct MDBX_env {
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
SRWLOCK me_remap_guard;
|
||||
/* Workaround for LockFileEx and WriteFile multithread bug */
|
||||
CRITICAL_SECTION me_windowsbug_lock;
|
||||
#else
|
||||
mdbx_fastmutex_t me_remap_guard;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user