#include <folly/executors/GlobalThreadPoolList.h>
#include <folly/system/ThreadId.h>
#include <memory>
#include <string>
#include <vector>
#include <folly/CppAttributes.h>
#include <folly/Indestructible.h>
#include <folly/Synchronized.h>
#include <folly/ThreadLocal.h>
namespace folly {
namespace debugger_detail {
class ThreadListHook { … };
class GlobalThreadPoolListImpl { … };
class GlobalThreadPoolList { … };
GlobalThreadPoolList* GlobalThreadPoolList::debug;
GlobalThreadPoolList& GlobalThreadPoolList::instance() { … }
void GlobalThreadPoolList::registerThreadPool(
ThreadPoolListHook* threadPoolId, std::string name) { … }
void GlobalThreadPoolList::unregisterThreadPool(
ThreadPoolListHook* threadPoolId) { … }
void GlobalThreadPoolList::registerThreadPoolThread(
ThreadPoolListHook* threadPoolId,
std::thread::id threadId,
uint64_t osThreadId) { … }
void GlobalThreadPoolList::unregisterThreadPoolThread(
ThreadPoolListHook* threadPoolId, std::thread::id threadId) { … }
void GlobalThreadPoolListImpl::registerThreadPool(
ThreadPoolListHook* threadPoolId, std::string name) { … }
void GlobalThreadPoolListImpl::unregisterThreadPool(
ThreadPoolListHook* threadPoolId) { … }
void GlobalThreadPoolListImpl::registerThreadPoolThread(
ThreadPoolListHook* threadPoolId,
std::thread::id threadId,
uint64_t osThreadId) { … }
void GlobalThreadPoolListImpl::unregisterThreadPoolThread(
ThreadPoolListHook* threadPoolId, std::thread::id threadId) { … }
ThreadListHook::ThreadListHook(
ThreadPoolListHook* poolId, std::thread::id threadId, uint64_t osThreadId) { … }
ThreadListHook::~ThreadListHook() { … }
}
ThreadPoolListHook::ThreadPoolListHook(std::string name) { … }
ThreadPoolListHook::~ThreadPoolListHook() { … }
void ThreadPoolListHook::registerThread() { … }
}