Observes the execution of a task. Multiple execution observers can be chained together. As a caveat, execution observers should not remove themselves from the list of observers during execution

Synopsis

Declared in <folly/executors/ExecutionObserver.h>

class ExecutionObserver
    : public boost::intrusive::list_base_hook<boost::intrusive::link_mode<boost::intrusive::auto_unlink>>

Base Classes

Name

Description

boost::intrusive::list_base_hook<boost::intrusive::link_mode<boost::intrusive::auto_unlink>>

Type Aliases

Name

Description

List

An intrusive list of execution observers.

Enums

Name

Description

CallbackType

The type of callback whose execution is being observed.

Member Functions

Name

Description

~ExecutionObserver [destructor] [virtual]

Destroys the execution observer.

starting [virtual]

Called when a task is about to start executing.

stopped [virtual]

Called just after a task stops executing.

Created with MrDocs