Repository: qpid-proton Updated Branches: refs/heads/master 822d08deb -> d82bbfab0
PROTON-1694: Proactor libuv implementation doesn't initialise mutexes Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/ef33dd67 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/ef33dd67 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/ef33dd67 Branch: refs/heads/master Commit: ef33dd674c82c474ce0bffbf595ddb45c40e9297 Parents: 822d08d Author: Roddie Kieley <rkie...@unifiedsoftworx.com> Authored: Sat Nov 11 19:51:20 2017 -0500 Committer: Andrew Stitcher <astitc...@apache.org> Committed: Wed Nov 22 17:36:18 2017 -0500 ---------------------------------------------------------------------- proton-c/src/proactor/libuv.c | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/ef33dd67/proton-c/src/proactor/libuv.c ---------------------------------------------------------------------- diff --git a/proton-c/src/proactor/libuv.c b/proton-c/src/proactor/libuv.c index 4088b07..0e5437d 100644 --- a/proton-c/src/proactor/libuv.c +++ b/proton-c/src/proactor/libuv.c @@ -305,6 +305,7 @@ static pconnection_t *pconnection(pn_proactor_t *p, pn_connection_t *c, bool ser work_init(&pc->work, p, T_CONNECTION); pc->next = pconnection_unqueued; pc->write.data = &pc->work; + uv_mutex_init(&pc->lock); if (server) { pn_transport_set_server(pc->driver.transport); } @@ -660,6 +661,7 @@ void pn_listener_free(pn_listener_t *l) { free(ls); } assert(!l->accept.front); + uv_mutex_destroy(&l->lock); free(l); } } @@ -1239,6 +1241,7 @@ pn_listener_t *pn_listener(void) { pn_listener_free(l); return NULL; } + uv_mutex_init(&l->lock); } return l; } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org