diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-14 19:43:09 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-14 19:43:09 -0700 |
| commit | 031f7f441f88379d5359a6e96cdd2fe296052070 (patch) | |
| tree | 6ce377b449fb1922ad5461265697d0df991c4837 /src/platform | |
| parent | 36746b4f6615607510eedb8e5d168b0fc4897ded (diff) | |
| download | nng-031f7f441f88379d5359a6e96cdd2fe296052070.tar.gz nng-031f7f441f88379d5359a6e96cdd2fe296052070.tar.bz2 nng-031f7f441f88379d5359a6e96cdd2fe296052070.zip | |
Implemented asynchronous (fully) accept.
This logic leaves a race condition in the dial side, which will
be fixed with a subsequent change to convert that to fully asynchronous
as well.
Diffstat (limited to 'src/platform')
| -rw-r--r-- | src/platform/windows/win_iocp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/windows/win_iocp.c b/src/platform/windows/win_iocp.c index 2635a4fc..d0a39142 100644 --- a/src/platform/windows/win_iocp.c +++ b/src/platform/windows/win_iocp.c @@ -186,7 +186,7 @@ nni_win_event_init(nni_win_event *evt, nni_win_event_ops *ops, void *ptr) int rv; ZeroMemory(&evt->olpd, sizeof(evt->olpd)); - evt->olpd.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL); + evt->olpd.hEvent = CreateEvent(NULL, TRUE, TRUE, NULL); if (evt->olpd.hEvent == NULL) { return (nni_win_error(GetLastError())); } |
