This is an automated email from the ASF dual-hosted git repository.
briang pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new f96c1f5 TS-4387: When calling
TSContSchedule()/TSContScheduleEvery(), the passed in parameter TSCont have to
have MUTEX; otherwise if we call TSContSchedule()/TSContScheduleEvery() more
than once using same TSCont, only the first call will take effect; all the
following schedule are ignored due to MUTEX issue.
f96c1f5 is described below
commit f96c1f505564280b3f12a98c3ae7abc33b73b168
Author: Shen Zhang <[email protected]>
AuthorDate: Wed May 4 00:46:21 2016 -0700
TS-4387: When calling TSContSchedule()/TSContScheduleEvery(), the passed
in parameter TSCont have to have MUTEX; otherwise if we call
TSContSchedule()/TSContScheduleEvery() more than once using same TSCont,
only the first call will take effect; all the following schedule are
ignored due to MUTEX issue.
This closes #603
---
proxy/InkAPI.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/proxy/InkAPI.cc b/proxy/InkAPI.cc
index 6b2bce2..66f9f50 100644
--- a/proxy/InkAPI.cc
+++ b/proxy/InkAPI.cc
@@ -4217,6 +4217,8 @@ TSContSchedule(TSCont contp, ink_hrtime timeout,
TSThreadPool tp)
{
sdk_assert(sdk_sanity_check_iocore_structure(contp) == TS_SUCCESS);
+ FORCE_PLUGIN_SCOPED_MUTEX(contp);
+
INKContInternal *i = (INKContInternal *)contp;
TSAction action;
@@ -4269,6 +4271,8 @@ TSContScheduleEvery(TSCont contp, ink_hrtime every,
TSThreadPool tp)
{
sdk_assert(sdk_sanity_check_iocore_structure(contp) == TS_SUCCESS);
+ FORCE_PLUGIN_SCOPED_MUTEX(contp);
+
INKContInternal *i = (INKContInternal *)contp;
TSAction action;
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].