proxygen
folly::ThreadPoolExecutor::Observer Class Referenceabstract

#include <ThreadPoolExecutor.h>

Inheritance diagram for folly::ThreadPoolExecutor::Observer:
TestObserver wangle::ServerWorkerPool

Public Member Functions

virtual void threadStarted (ThreadHandle *)=0
 
virtual void threadStopped (ThreadHandle *)=0
 
virtual void threadPreviouslyStarted (ThreadHandle *h)
 
virtual void threadNotYetStopped (ThreadHandle *h)
 
virtual ~Observer ()=default
 

Detailed Description

Observer interface for thread start/stop. Provides hooks so actions can be taken when threads are created

Definition at line 141 of file ThreadPoolExecutor.h.

Constructor & Destructor Documentation

virtual folly::ThreadPoolExecutor::Observer::~Observer ( )
virtualdefault

Member Function Documentation

virtual void folly::ThreadPoolExecutor::Observer::threadNotYetStopped ( ThreadHandle h)
inlinevirtual

Reimplemented in TestObserver, and wangle::ServerWorkerPool.

Definition at line 148 of file ThreadPoolExecutor.h.

References folly::ThreadPoolExecutor::addObserver(), and folly::ThreadPoolExecutor::removeObserver().

148  {
149  threadStopped(h);
150  }
*than *hazptr_holder h
Definition: Hazptr.h:116
virtual void threadStopped(ThreadHandle *)=0
virtual void folly::ThreadPoolExecutor::Observer::threadPreviouslyStarted ( ThreadHandle h)
inlinevirtual

Reimplemented in TestObserver, and wangle::ServerWorkerPool.

Definition at line 145 of file ThreadPoolExecutor.h.

145  {
146  threadStarted(h);
147  }
*than *hazptr_holder h
Definition: Hazptr.h:116
virtual void threadStarted(ThreadHandle *)=0
virtual void folly::ThreadPoolExecutor::Observer::threadStarted ( ThreadHandle )
pure virtual

Implemented in TestObserver, and wangle::ServerWorkerPool.

virtual void folly::ThreadPoolExecutor::Observer::threadStopped ( ThreadHandle )
pure virtual

Implemented in TestObserver, and wangle::ServerWorkerPool.


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