]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Added cbdataProtected parameter to control the last eventAdd
authorrousskov <>
Tue, 8 May 2007 22:15:50 +0000 (22:15 +0000)
committerrousskov <>
Tue, 8 May 2007 22:15:50 +0000 (22:15 +0000)
parameter. Defaults to true, just like with eventAdd.

src/AsyncCall.cc
src/AsyncCall.h

index b115452622cd0dacb69934877652a82c2b42e5c0..32ef8560a3575985473765cfabb1d368edf427e6 100644 (file)
@@ -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 5fc2816f60a8db702ebbb10f1de227df3614ac11..a731ae905b85c28d924e7102dc289ea2c24176c6 100644 (file)
@@ -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);