]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/base/AsyncJobCalls.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / base / AsyncJobCalls.h
index 380eec5817e3c6fbe00bf10afaa2539733b83f2e..45d56d0c5aa527b482ac133d417c8dbc82fc0483 100644 (file)
@@ -1,6 +1,9 @@
-
 /*
- * $Id$
+ * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
 #ifndef SQUID_ASYNCJOBCALLS_H
@@ -8,6 +11,7 @@
 
 #include "base/AsyncJob.h"
 #include "base/CbcPointer.h"
+#include "Debug.h"
 
 /**
  \ingroup AsyncJobAPI
@@ -50,7 +54,6 @@ CallJob(int debugSection, int debugLevel, const char *fileName, int fileLine,
     return ScheduleCall(fileName, fileLine, call);
 }
 
-
 #define CallJobHere(debugSection, debugLevel, job, Class, method) \
     CallJob((debugSection), (debugLevel), __FILE__, __LINE__, \
         (#Class "::" #method), \
@@ -61,13 +64,11 @@ CallJob(int debugSection, int debugLevel, const char *fileName, int fileLine,
         (#Class "::" #method), \
         JobMemFun((job), &Class::method, (arg1)))
 
-
 /// Convenience macro to create a Dialer-based job callback
 #define JobCallback(dbgSection, dbgLevel, Dialer, job, method) \
     asyncCall((dbgSection), (dbgLevel), #method, \
         Dialer(CbcPointer<Dialer::DestClass>(job), &method))
 
-
 /*
  * *MemFunT are member function (i.e., class method) wrappers. They store
  * details of a method call in an object so that the call can be delayed
@@ -90,7 +91,7 @@ class NullaryMemFunT: public JobDialer<Job>
 public:
     typedef void (Job::*Method)();
     explicit NullaryMemFunT(const CbcPointer<Job> &aJob, Method aMethod):
-            JobDialer<Job>(aJob), method(aMethod) {}
+        JobDialer<Job>(aJob), method(aMethod) {}
 
     virtual void print(std::ostream &os) const {  os << "()"; }
 
@@ -108,7 +109,7 @@ public:
     typedef void (Job::*Method)(Argument1);
     explicit UnaryMemFunT(const CbcPointer<Job> &aJob, Method aMethod,
                           const Data &anArg1): JobDialer<Job>(aJob),
-            method(aMethod), arg1(anArg1) {}
+        method(aMethod), arg1(anArg1) {}
 
     virtual void print(std::ostream &os) const {  os << '(' << arg1 << ')'; }
 
@@ -122,7 +123,6 @@ protected:
 
 // ... add more as needed
 
-
 // Now we add global templated functions that create the member function
 // wrappers above. These are for convenience: it is often easier to
 // call a templated function than to create a templated object.
@@ -142,7 +142,6 @@ JobMemFun(const CbcPointer<C> &job, typename UnaryMemFunT<C, Argument1>::Method
     return UnaryMemFunT<C, Argument1>(job, method, arg1);
 }
 
-
 // inlined methods
 
 template<class Job>
@@ -183,3 +182,4 @@ JobDialer<Job>::dial(AsyncCall &call)
 }
 
 #endif /* SQUID_ASYNCJOBCALLS_H */
+