0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 07:50:57 +01:00

ircd::ctx::future: Use our steady_clock now() here.

This commit is contained in:
Jason Volk 2019-07-24 17:07:16 -07:00
parent c45bfc4379
commit f450028c77

View file

@ -230,14 +230,14 @@ void
ircd::ctx::future<T>::wait() ircd::ctx::future<T>::wait()
const const
{ {
this->wait_until(steady_clock::time_point::max()); this->wait_until(steady_point::max());
} }
inline void inline void
ircd::ctx::future<void>::wait() ircd::ctx::future<void>::wait()
const const
{ {
this->wait_until(steady_clock::time_point::max()); this->wait_until(steady_point::max());
} }
template<class T> template<class T>
@ -246,7 +246,7 @@ void
ircd::ctx::future<T>::wait(const duration &d) ircd::ctx::future<T>::wait(const duration &d)
const const
{ {
this->wait_until(steady_clock::now() + d); this->wait_until(now<steady_point>() + d);
} }
template<class duration> template<class duration>
@ -254,7 +254,7 @@ void
ircd::ctx::future<void>::wait(const duration &d) ircd::ctx::future<void>::wait(const duration &d)
const const
{ {
this->wait_until(steady_clock::now() + d); this->wait_until(now<steady_point>() + d);
} }
template<class T> template<class T>
@ -264,7 +264,7 @@ ircd::ctx::future<T>::wait(const duration &d,
std::nothrow_t) std::nothrow_t)
const const
{ {
return this->wait_until(steady_clock::now() + d, std::nothrow); return this->wait_until(now<steady_point>() + d, std::nothrow);
} }
template<class duration> template<class duration>
@ -273,7 +273,7 @@ ircd::ctx::future<void>::wait(const duration &d,
std::nothrow_t) std::nothrow_t)
const const
{ {
return this->wait_until(steady_clock::now() + d, std::nothrow); return this->wait_until(now<steady_point>() + d, std::nothrow);
} }
template<class T> template<class T>