51 void AdvanceTime()
noexcept;
53 void TickTime()
noexcept;
59 void WakeUpNeeded()
noexcept;
61 std::uint32_t _random_list_pick = 10;
64 std::map<std::uint64_t, detail::fiber::BiList> _sleep_list;
67 std::uint64_t _time{0};
void Schedule(detail::fiber::FiberBase *fiber)
static void SetTickLength(std::uint32_t tick) noexcept
static detail::fiber::FiberBase::Id GetId()
static void RescheduleCurrent()
std::uint64_t GetTimeNs() const noexcept
void SleepPreemptive(std::uint64_t ns)
static void Set(Scheduler *scheduler) noexcept
static Scheduler * GetScheduler() noexcept
static detail::fiber::FiberBase * Current() noexcept
void Sleep(std::uint64_t ns)
bool IsRunning() const noexcept
Node * PollRandomElementFromList(BiList &list)
void SetRandomListPick(std::uint32_t k) noexcept
Contract< V, E > MakeContract()
Creates related future and promise.