adjust internal definition of sync barrier type to match windows

This commit is contained in:
Ryan Fleury
2026-05-12 13:52:25 -07:00
parent d4623a7ddf
commit 50a68b9d8c
2 changed files with 13 additions and 4 deletions
+5
View File
@@ -1772,6 +1772,11 @@ w32_entry_point_caller(int argc, WCHAR **wargv)
w32_InitializeSynchronizationBarrier_func = (W32_InitializeSynchronizationBarrier_Type *)GetProcAddress(module, "InitializeSynchronizationBarrier");
w32_DeleteSynchronizationBarrier_func = (W32_DeleteSynchronizationBarrier_Type *)GetProcAddress(module, "DeleteSynchronizationBarrier");
w32_EnterSynchronizationBarrier_func = (W32_EnterSynchronizationBarrier_Type *)GetProcAddress(module, "EnterSynchronizationBarrier");
if(w32_InitializeSynchronizationBarrier_func == 0)
{
w32_DeleteSynchronizationBarrier_func = 0;
w32_EnterSynchronizationBarrier_func = 0;
}
FreeLibrary(module);
}
+8 -4
View File
@@ -56,11 +56,15 @@ W32_EntityKind;
typedef struct W32_SYNCHRONIZATION_BARRIER W32_SYNCHRONIZATION_BARRIER;
struct W32_SYNCHRONIZATION_BARRIER
{
U32 reserved_0;
U32 reserved_1;
DWORD reserved_0;
DWORD reserved_1;
#if ARCH_32BIT
U32 reserved_2[2];
#else
U64 reserved_2[2];
U32 reserved_3;
U32 reserved_4;
#endif
DWORD reserved_3;
DWORD reserved_4;
};
typedef struct W32_Entity W32_Entity;