20 return std::accumulate(
if_waiting.begin(),
if_waiting.end(),
false, [](
bool a,
bool b) {
return a || b; });
uint32_t get_index(const std::thread::id id)
void insert_completion_entry(uint32_t index, std::pair< int32_t, int32_t > ce)
void set_waiting(const std::thread::id id)
std::map< std::thread::id, uint32_t > tid_to_index
void reset_waiting(const std::thread::id id)
std::condition_variable poll_cv
std::vector< std::list< std::pair< int32_t, int32_t > > > completion_entries
std::optional< std::pair< int32_t, int32_t > > get_completion_entry(const std::thread::id id)
std::vector< bool > if_waiting