22 :
Waitable(name), provider_(nullptr) {}
27 Thread* thread = provider_.load(std::memory_order_acquire);
28 if (thread && thread->
get_id() == std::thread::id()) {
30 LOG(FATAL) <<
"Waiting on an event whose provider thread has exited: " 33 return thread ? thread->
get_id() : std::thread::id();
~ThreadEventBase() override
ThreadEventBase(const std::string &name)
std::thread::id get_id() const
std::thread::id GetProvider() const override