From ae920f90e2fa169db8867c722239069d750a1def Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 12 Jul 2017 17:33:36 -0700 Subject: Fix likely close race in Windows ICP/IOCP code. We are still seeing likely errors with pipes outliving their associated endpoints, so work is still needed here. --- src/platform/windows/win_impl.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/platform/windows/win_impl.h') diff --git a/src/platform/windows/win_impl.h b/src/platform/windows/win_impl.h index 4594da53..9049a81d 100644 --- a/src/platform/windows/win_impl.h +++ b/src/platform/windows/win_impl.h @@ -65,11 +65,18 @@ struct nni_win_event { void * ptr; nni_aio * aio; nni_mtx mtx; + nni_cv cv; + int flags; int count; int status; nni_win_event_ops ops; }; +enum nni_win_event_flags { + NNI_WIN_EVENT_RUNNING = 1, + NNI_WIN_EVENT_ABORT = 2, +}; + extern int nni_win_error(int); extern int nni_winsock_error(int); -- cgit v1.2.3-70-g09d2