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:
parent
c45bfc4379
commit
f450028c77
1 changed files with 6 additions and 6 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue