folly::ThreadPoolExecutor::threadRun

The function bound to pool threads.

Synopsis

Declared in <folly/executors/ThreadPoolExecutor.h>

virtual
void
threadRun(ThreadPtr thread) = 0;

Description

It must call thread->initBaton.post() once alive, then thread->readyBaton.wait() followed by a check of thread->cancelledBeforeReady before entering the work loop.

Parameters

NameDescription
threadThe thread this function runs on.