You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by sh...@apache.org on 2019/02/07 20:35:26 UTC
[trafficserver] branch master updated: grab the lock if there is one
This is an automated email from the ASF dual-hosted git repository.
shinrich pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 72a79c0 grab the lock if there is one
72a79c0 is described below
commit 72a79c0ea3225de19e10cd34c4182973133fb57a
Author: Fei Deng <du...@gmail.com>
AuthorDate: Sun Feb 3 15:57:44 2019 -0600
grab the lock if there is one
---
src/traffic_server/traffic_server.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/traffic_server/traffic_server.cc b/src/traffic_server/traffic_server.cc
index e607538..712328b 100644
--- a/src/traffic_server/traffic_server.cc
+++ b/src/traffic_server/traffic_server.cc
@@ -224,6 +224,7 @@ struct AutoStopCont : public Continuation {
{
APIHook *hook = lifecycle_hooks->get(TS_LIFECYCLE_SHUTDOWN_HOOK);
while (hook) {
+ SCOPED_MUTEX_LOCK(lock, hook->m_cont->mutex, this_ethread());
hook->invoke(TS_EVENT_LIFECYCLE_SHUTDOWN, nullptr);
hook = hook->next();
}