#include "function.h"
Public Types | |
typedef void(C::* | CancelFunc )() |
Public Member Functions | |
MemberFunctionBase (C *c) | |
base-class ctor variant without a cancel method. | |
MemberFunctionBase (C *c, CancelFunc cancel) | |
base-class ctor variant with a cancel method. | |
virtual void | Cancel () |
Protected Attributes | |
C * | c_ |
Base class for a MemberFunctionN classes, implementing an optional Cancel via a Member function.
virtual void net_instaweb::MemberFunctionBase< C >::Cancel | ( | ) | [inline, virtual] |
Informs a the Function that it is being shut down. If this is called, Run() should not be called. This should never be called while a function is running. See also set_quit_requested(), which can be called during Run(), so that Run() implementations can check quit_requested() at their convenience to stop the operation in progress.
Reimplemented from net_instaweb::Function.