The function bound to pool threads.
Declared in <folly/executors/ThreadPoolExecutor.h>
virtual
void
threadRun(ThreadPtr thread) = 0;
It must call thread->initBaton.post() once alive, then thread->readyBaton.wait() followed by a check of thread->cancelledBeforeReady before entering the work loop.
| Name | Description |
|---|---|
| thread | The thread this function runs on. |