You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2018/02/22 20:12:09 UTC
[4/4] qpid-proton git commit: PROTON-1734: Fix Win32 iocp
implementation
PROTON-1734: Fix Win32 iocp implementation
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/2b51dcf5
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/2b51dcf5
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/2b51dcf5
Branch: refs/heads/master
Commit: 2b51dcf56334f68603a3c47538fc45e7e534acc8
Parents: 0df65cc
Author: Andrew Stitcher <as...@apache.org>
Authored: Thu Feb 22 14:58:12 2018 -0500
Committer: Andrew Stitcher <as...@apache.org>
Committed: Thu Feb 22 15:00:51 2018 -0500
----------------------------------------------------------------------
proton-c/src/proactor/win_iocp.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/2b51dcf5/proton-c/src/proactor/win_iocp.c
----------------------------------------------------------------------
diff --git a/proton-c/src/proactor/win_iocp.c b/proton-c/src/proactor/win_iocp.c
index 71f9b0d..fe09876 100644
--- a/proton-c/src/proactor/win_iocp.c
+++ b/proton-c/src/proactor/win_iocp.c
@@ -3343,8 +3343,11 @@ void pn_proactor_disconnect(pn_proactor_t *p, pn_condition_t *cond) {
}
// no lock
- if (!disconnecting_pcontexts)
+ if (!disconnecting_pcontexts) {
+ csguard p_guard(&p->context.cslock);
+ wake_if_inactive(p);
return;
+ }
// Second pass: different locking, close the pcontexts, free them if !disconnect_ops
for (ctx = disconnecting_pcontexts; ctx; ctx = ctx ? ctx->next : NULL) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org