]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/base/AsyncCall.h
Maintenance: Remove FIXME and \todo labels (#647)
[thirdparty/squid.git] / src / base / AsyncCall.h
index 145f81242d8ba170c36015332cbd44d3edd9ab23..c77ee838f600cacfd95c4f981a54be1ba2d4875f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -9,6 +9,7 @@
 #ifndef SQUID_ASYNCCALL_H
 #define SQUID_ASYNCCALL_H
 
+#include "base/CodeContext.h"
 #include "base/InstanceId.h"
 #include "event.h"
 #include "RefCount.h"
 class CallDialer;
 class AsyncCallQueue;
 
-/**
- \todo add unique call IDs
- \todo CBDATA_CLASS2 kids
- \ingroup AsyncCallsAPI
- */
 class AsyncCall: public RefCountable
 {
 public:
@@ -74,6 +70,10 @@ public:
 
 public:
     const char *const name;
+
+    /// what the callee is expected to work on
+    CodeContext::Pointer codeContext;
+
     const int debugSection;
     const int debugLevel;
     const InstanceId<AsyncCall> id;
@@ -86,7 +86,7 @@ protected:
     AsyncCall::Pointer theNext; // used exclusively by AsyncCallQueue
 
 private:
-    const char *isCanceled; // set to the cancelation reason by cancel()
+    const char *isCanceled; // set to the cancellation reason by cancel()
 
     // not implemented to prevent nil calls from being passed around and unknowingly scheduled, for now.
     AsyncCall();
@@ -127,11 +127,11 @@ class AsyncCallT: public AsyncCall
 public:
     AsyncCallT(int aDebugSection, int aDebugLevel, const char *aName,
                const Dialer &aDialer): AsyncCall(aDebugSection, aDebugLevel, aName),
-            dialer(aDialer) {}
+        dialer(aDialer) {}
 
     AsyncCallT(const AsyncCallT<Dialer> &o):
-            AsyncCall(o.debugSection, o.debugLevel, o.name),
-            dialer(o.dialer) {}
+        AsyncCall(o.debugSection, o.debugLevel, o.name),
+        dialer(o.dialer) {}
 
     ~AsyncCallT() {}
 
@@ -166,3 +166,4 @@ bool ScheduleCall(const char *fileName, int fileLine, AsyncCall::Pointer &call);
 #define ScheduleCallHere(call) ScheduleCall(__FILE__, __LINE__, (call))
 
 #endif /* SQUID_ASYNCCALL_H */
+