MCPcopy Create free account
hub / github.com/MariaDB/server / win_get_syncio_event

Function win_get_syncio_event

tpool/aio_simulated.cc:37–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35*/
36static DWORD fls_sync_io= FLS_OUT_OF_INDEXES;
37HANDLE win_get_syncio_event()
38{
39 HANDLE h;
40
41 h= (HANDLE) FlsGetValue(fls_sync_io);
42 if (h)
43 {
44 return h;
45 }
46 h= CreateEventA(NULL, FALSE, FALSE, NULL);
47 /* Set low-order bit to keeps I/O completion from being queued */
48 h= (HANDLE)((uintptr_t) h | 1);
49 FlsSetValue(fls_sync_io, h);
50 return h;
51}
52#include <WinIoCtl.h>
53static void __stdcall win_free_syncio_event(void *data)
54{

Callers 3

preadFunction · 0.85
pwriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected