diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-02-18 00:08:38 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-02-18 00:10:05 -0800 |
| commit | c366471a28e06426fb7d1f6891d424432e450b67 (patch) | |
| tree | a1e7ab2a11f6f63bdb09d65bd1009114c4603e60 /src | |
| parent | dba356ddc23f59e158368e8f1af4f714bca9c111 (diff) | |
| download | nng-c366471a28e06426fb7d1f6891d424432e450b67.tar.gz nng-c366471a28e06426fb7d1f6891d424432e450b67.tar.bz2 nng-c366471a28e06426fb7d1f6891d424432e450b67.zip | |
Windows: Bring back hEvent -- needed for real IPC.
Diffstat (limited to 'src')
| -rw-r--r-- | src/platform/windows/win_io.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/platform/windows/win_io.c b/src/platform/windows/win_io.c index f5556719..48c08543 100644 --- a/src/platform/windows/win_io.c +++ b/src/platform/windows/win_io.c @@ -64,9 +64,10 @@ nni_win_io_init(nni_win_io *io, nni_win_io_cb cb, void *ptr) { ZeroMemory(&io->olpd, sizeof(io->olpd)); - io->cb = cb; - io->ptr = ptr; - io->aio = NULL; + io->cb = cb; + io->ptr = ptr; + io->aio = NULL; + io->olpd.hEvent = CreateEvent(NULL, FALSE, FALSE, NULL); } int |
