diff options
Diffstat (limited to 'src/platform/windows/win_iocp.c')
| -rw-r--r-- | src/platform/windows/win_iocp.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/platform/windows/win_iocp.c b/src/platform/windows/win_iocp.c index d0a39142..df0357c8 100644 --- a/src/platform/windows/win_iocp.c +++ b/src/platform/windows/win_iocp.c @@ -1,5 +1,6 @@ // // Copyright 2017 Garrett D'Amore <garrett@damore.org> +// Copyright 2017 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -213,12 +214,12 @@ nni_win_event_fini(nni_win_event *evt) // Use provider specific cancellation. evt->ops.wev_cancel(evt); - - // Wait for everything to stop referencing this. - while (evt->flags & NNI_WIN_EVENT_RUNNING) { - nni_cv_wait(&evt->cv); - } } + // Wait for everything to stop referencing this. + while (evt->flags & NNI_WIN_EVENT_RUNNING) { + nni_cv_wait(&evt->cv); + } + nni_mtx_unlock(&evt->mtx); } |
