--------------------- PatchSet 4387 Date: 2007/04/25 20:12:39 Author: rousskov Branch: squid3-icap Tag: (none) Log: Added cbdataProtected parameter to control the last eventAdd parameter. Defaults to true, just like with eventAdd. Members: src/AsyncCall.cc:1.1.2.1->1.1.2.2 src/AsyncCall.h:1.1.2.1->1.1.2.2 Index: squid3/src/AsyncCall.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/AsyncCall.cc,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- squid3/src/AsyncCall.cc 14 Feb 2007 04:40:01 -0000 1.1.2.1 +++ squid3/src/AsyncCall.cc 25 Apr 2007 20:12:39 -0000 1.1.2.2 @@ -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, Index: squid3/src/AsyncCall.h =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/AsyncCall.h,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- squid3/src/AsyncCall.h 14 Feb 2007 04:40:01 -0000 1.1.2.1 +++ squid3/src/AsyncCall.h 25 Apr 2007 20:12:40 -0000 1.1.2.2 @@ -1,6 +1,6 @@ /* - * $Id: AsyncCall.h,v 1.1.2.1 2007/02/14 04:40:01 rousskov Exp $ + * $Id: AsyncCall.h,v 1.1.2.2 2007/04/25 20:12:40 rousskov Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -80,7 +80,7 @@ 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);