A hook for tracking which threads belong to which thread pools. This is used only by a gdb extension to aid in debugging. You won't be able to see any useful information from within C++ code.
Declared in <folly/executors/GlobalThreadPoolList.h>
class ThreadPoolListHook;
An instance of ThreadPoolListHook should be created in the thread pool class that you want to keep track of. Then, to register a thread you call registerThread() on your instance of ThreadPoolListHook from that thread.
When a thread exits it will be removed from the list When the thread pool is destroyed, it will be removed from the list
| Name | Description |
|---|---|
ThreadPoolListHook [constructor] | Constructors |
~ThreadPoolListHook [destructor] | Removes the thread pool from the global list. |
operator= [deleted] | Copy assignment operator (deleted). |
registerThread | Call this from any new thread that the thread pool creates. |