Implement thread_ctrl::wait_until()

This commit is contained in:
Elad Ashkenazi 2024-08-16 20:06:20 +03:00
parent b2877365de
commit 1bd4565186
6 changed files with 47 additions and 11 deletions

View file

@ -276,6 +276,9 @@ public:
// Wait once with timeout. Infinite value is -1.
static void wait_for(u64 usec, bool alert = true);
// Wait once with time point, add_time is added to the time point.
static void wait_until(u64* wait_time, u64 add_time = 0, u64 min_wait = 0, bool update_to_current_time = true);
// Waiting with accurate timeout
static void wait_for_accurate(u64 usec);