15#ifndef THREAD_FIBER_SELECT_H_
16#define THREAD_FIBER_SELECT_H_
18#include <absl/log/check.h>
20#include "thread/cases.h"
76 CHECK(!cases.empty()) <<
"No cases provided";
absl::InlinedVector< Case, 4 > CaseArray
Definition cases.h:98
int SelectUntil(absl::Time deadline, const CaseArray &cases)
Returns the index of the first case that is ready, or -1 if the deadline has expired without any case...
Definition select.cc:55
int Select(const CaseArray &cases)
Returns the index of the first case that is ready, blocking until one is.
Definition select.h:18