0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd::ios: Add accessor to epoch counter.

This commit is contained in:
Jason Volk 2019-08-13 19:37:30 -07:00
parent 6df832607f
commit e7609afb7b

View file

@ -56,6 +56,7 @@ namespace ircd::ios
bool available() noexcept;
asio::io_context &get() noexcept;
const uint64_t &epoch() noexcept;
void forked_parent();
void forked_child();
@ -268,6 +269,14 @@ ircd::ios::name(const descriptor &descriptor)
return descriptor.name;
}
inline const uint64_t &
__attribute__((always_inline))
ircd::ios::epoch()
noexcept
{
return handler::epoch;
}
inline void
__attribute__((always_inline))
ircd::ios::assert_main_thread()