You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by br...@apache.org on 2014/03/19 23:59:04 UTC
[4/7] git commit: [TS-2651] atscppapi: race conditions in destruction
of async providers
[TS-2651] atscppapi: race conditions in destruction of async providers
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/395f14b4
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/395f14b4
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/395f14b4
Branch: refs/heads/master
Commit: 395f14b4ceaebc2d60aef924c9f1933e6fb405fd
Parents: ce43725
Author: Brian Geffon <br...@apache.org>
Authored: Wed Mar 19 15:57:42 2014 -0700
Committer: Brian Geffon <br...@apache.org>
Committed: Wed Mar 19 15:57:42 2014 -0700
----------------------------------------------------------------------
lib/atscppapi/src/include/utils_internal.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/395f14b4/lib/atscppapi/src/include/utils_internal.h
----------------------------------------------------------------------
diff --git a/lib/atscppapi/src/include/utils_internal.h b/lib/atscppapi/src/include/utils_internal.h
index edc02c2..7cef956 100644
--- a/lib/atscppapi/src/include/utils_internal.h
+++ b/lib/atscppapi/src/include/utils_internal.h
@@ -83,10 +83,13 @@ public:
}
static void dispatchInterceptEvent(InterceptPlugin *plugin, TSEvent event, void *edata) {
- ScopedSharedMutexLock scopedSharedMutexLock(plugin->getMutex());
plugin->handleEvent(static_cast<int>(event), edata);
}
+ static void deleteAsyncHttpFetch(AsyncHttpFetch *fetch) {
+ delete fetch;
+ }
+
}; /* internal */
} /* utils */