From: rousskov <> Date: Tue, 8 May 2007 22:15:50 +0000 (+0000) Subject: Added cbdataProtected parameter to control the last eventAdd X-Git-Tag: SQUID_3_0_PRE6~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=209c9ab8dc1f8389e9cd03367a1efb353c8316b6;p=thirdparty%2Fsquid.git Added cbdataProtected parameter to control the last eventAdd parameter. Defaults to true, just like with eventAdd. --- diff --git a/src/AsyncCall.cc b/src/AsyncCall.cc index b115452622..32ef8560a3 100644 --- a/src/AsyncCall.cc +++ b/src/AsyncCall.cc @@ -3,11 +3,11 @@ void scheduleAsyncCall(int debugSection, int debugLevel, const char *fileName, int fileLine, void *objectPtr, const char *callName, - EVH *wrapper) + EVH *wrapper, bool cbdataProtected) { debugs(debugSection, debugLevel, fileName << "(" << fileLine << ") will call " << callName << '(' << objectPtr << ')'); - eventAdd(callName, wrapper, objectPtr, 0.0, 0, true); + eventAdd(callName, wrapper, objectPtr, 0.0, 0, cbdataProtected); } bool enterAsyncCallWrapper(int debugSection, int debugLevel, diff --git a/src/AsyncCall.h b/src/AsyncCall.h index 5fc2816f60..a731ae905b 100644 --- a/src/AsyncCall.h +++ b/src/AsyncCall.h @@ -1,6 +1,6 @@ /* - * $Id: AsyncCall.h,v 1.1 2007/04/06 04:45:07 rousskov Exp $ + * $Id: AsyncCall.h,v 1.2 2007/05/08 16:15:50 rousskov Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -80,7 +80,7 @@ void callName ## Wrapper(void *data) { \ extern void scheduleAsyncCall(int debugSection, int debugLevel, const char *fileName, int fileLine, void *objectPtr, const char *callName, - EVH *wrapper); + EVH *wrapper, bool cbdataProtected = true); extern bool enterAsyncCallWrapper(int debugSection, int debugLevel, void *objectPtr, const char *className, const char *methodName);