8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:40:38 +01:00

Enforce equal binary layout of event_t structure for both 32 and 64-bit platforms as its instances is used in shared memory.

It fixed bug CORE-5515 : When 32bit and 64bit FB 3 servers run on one Windows machine concurrently, Firebird services freeze several minutes after first disconnect.
This commit is contained in:
hvlad 2021-03-14 01:56:54 +02:00
parent 7e1e9b3ecb
commit ffaf62b5ff

View File

@ -111,12 +111,18 @@ struct mtx
FAST_MUTEX mtx_fast;
};
// Enforce equal binary layout for both 32 and 64-bit platforms as instances of
// event_t is used in shared memory.
struct event_t
{
SLONG event_pid;
SLONG event_id;
SLONG event_count;
void* event_handle;
union
{
HANDLE event_handle;
FB_UINT64 dummy;
};
};
#endif // WIN_NT