Lines Matching defs:thread
21 #include <thread>
28 #include "libpandabase/os/thread.h"
44 const std::function<void(os::thread::native_handle_type)> prologueHook,
45 const std::function<void(os::thread::native_handle_type)> epilogueHook);
66 bool IsInThreadPool(std::thread::id id)
69 for (auto &thread : threadPool_) {
70 if (thread->get_id() == id) {
77 void PrologueHook(os::thread::native_handle_type thread)
80 prologueHook_(thread);
83 void EpilogueHook(os::thread::native_handle_type thread)
86 epilogueHook_(thread);
95 std::vector<std::unique_ptr<std::thread>> threadPool_ {};
103 std::function<void(os::thread::native_handle_type)> prologueHook_;
104 std::function<void(os::thread::native_handle_type)> epilogueHook_;