You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2016/02/03 19:51:56 UTC

[4/5] qpid-dispatch git commit: DISPATCH_179 Added missing critical section around links_with_credit.

DISPATCH_179 Added missing critical section around links_with_credit.


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/706cee99
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/706cee99
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/706cee99

Branch: refs/heads/tross-DISPATCH-179-1
Commit: 706cee9937c7d95725d66f1ad3c7064c9fbff984
Parents: 2afb7bc
Author: Ted Ross <tr...@redhat.com>
Authored: Wed Feb 3 10:25:56 2016 -0500
Committer: Ted Ross <tr...@redhat.com>
Committed: Wed Feb 3 10:25:56 2016 -0500

----------------------------------------------------------------------
 src/router_core/transfer.c | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/706cee99/src/router_core/transfer.c
----------------------------------------------------------------------
diff --git a/src/router_core/transfer.c b/src/router_core/transfer.c
index d3342e3..fcc33be 100644
--- a/src/router_core/transfer.c
+++ b/src/router_core/transfer.c
@@ -260,7 +260,9 @@ void qdr_link_issue_credit_CT(qdr_core_t *core, qdr_link_t *link, int credit)
         //
         // Put this link on the connection's has-credit list.
         //
+        sys_mutex_lock(link->conn->work_lock);
         qdr_add_link_ref(&link->conn->links_with_credit, link, QDR_LINK_LIST_CLASS_FLOW);
+        sys_mutex_unlock(link->conn->work_lock);
 
         //
         // Activate the connection


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org