Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::NotifyFunction Class Reference

#include "controller_grpc_mocks.h"

Inheritance diagram for net_instaweb::NotifyFunction:

Public Member Functions

 NotifyFunction (Function *func, WorkerTestBase::SyncPoint *sync)
void Run () override
void Cancel () override
- Public Member Functions inherited from net_instaweb::Function
void set_quit_requested_pointer (AtomicBool *x)
bool quit_requested () const
void CallRun ()
void CallCancel ()
void set_delete_after_callback (bool x)
void Reset ()

Additional Inherited Members

Detailed Description

Function wrapper that Notify()s a SyncPoint after running another contained Function.

Member Function Documentation

void net_instaweb::NotifyFunction::Cancel ( )

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.

void net_instaweb::NotifyFunction::Run ( )

Callers must override this to define the action to take when a closure is run. If this is called, Cancel() should not be called. This is a convention that's expected of callers of Function objects, but is not enforced by the Function implementation.

Implements net_instaweb::Function.

The documentation for this class was generated from the following file: