-
- Downloads
clock: add clock_event::set(timepoint)
In the previous patch we built clock_event::set(s64) on top of set(duration). In this patch we add set(timepoint), for absolute time in any clock supporting the now() static method. In the following patches, we'll convert our timers to using the monotonic clock osv::clock::uptime, and use timepoints of that clock in calls to clock_event::set(). By temporarily having both s64 and std::chrono:time_point versions of set(), we make this patch series bisectable. At the end of this series, the s64 variant will be removed. Reviewed-by:Glauber Costa <glommer@cloudius-systems.com> Signed-off-by:
Nadav Har'El <nyh@cloudius-systems.com> Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
Please register or sign in to comment