trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From duke8...@apache.org
Subject [trafficserver] branch master updated: grab lock before invoke
Date Wed, 15 May 2019 16:23:19 GMT
This is an automated email from the ASF dual-hosted git repository.

duke8253 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 6f01d77  grab lock before invoke
6f01d77 is described below

commit 6f01d77fb7cc149b0f5e92c304ea8c406a1597d6
Author: Fei Deng <duke8253@gmail.com>
AuthorDate: Wed May 15 09:43:31 2019 -0500

    grab lock before invoke
---
 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 3d6c630..65b2a75 100644
--- a/src/traffic_server/traffic_server.cc
+++ b/src/traffic_server/traffic_server.cc
@@ -2103,6 +2103,7 @@ task_threads_started_callback()
 {
   APIHook *hook = lifecycle_hooks->get(TS_LIFECYCLE_TASK_THREADS_READY_HOOK);
   while (hook) {
+    SCOPED_MUTEX_LOCK(lock, hook->m_cont->mutex, this_ethread());
     hook->invoke(TS_EVENT_LIFECYCLE_TASK_THREADS_READY, nullptr);
     hook = hook->next();
   }


Mime
View raw message