Re: [PATCH] libstdc++: Fix semaphore to work with system_clock timeouts

2021-04-23 Thread Richard Biener via Gcc-patches
On Thu, Apr 22, 2021 at 8:48 PM Jonathan Wakely via Gcc-patches wrote: > > The __cond_wait_until_impl function takes a steady_clock timeout, but > then sometimes tries to compare it to a time from the system_clock, > which won't compile. Additionally, that function gets called with >

[PATCH] libstdc++: Fix semaphore to work with system_clock timeouts

2021-04-22 Thread Jonathan Wakely via Gcc-patches
The __cond_wait_until_impl function takes a steady_clock timeout, but then sometimes tries to compare it to a time from the system_clock, which won't compile. Additionally, that function gets called with system_clock timeouts, which also won't compile. This makes the function accept timeouts for