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:
parent
6df832607f
commit
e7609afb7b
1 changed files with 9 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue