/*
- * Copyright (C) 1996-2016 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.
#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_CLASS kids
- \ingroup AsyncCallsAPI
- */
class AsyncCall: public RefCountable
{
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;
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();