mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::ios: Apply noexcept to handler border functions.
This commit is contained in:
parent
20081ce5c1
commit
ebbc5a5be0
2 changed files with 10 additions and 5 deletions
|
@ -150,11 +150,11 @@ struct ircd::ios::handler
|
|||
static thread_local handler *current;
|
||||
|
||||
static void *allocate(handler *const &, const size_t &);
|
||||
static void deallocate(handler *const &, void *const &, const size_t &);
|
||||
static bool continuation(handler *const &);
|
||||
static void enter(handler *const &);
|
||||
static void leave(handler *const &);
|
||||
static bool fault(handler *const &);
|
||||
static void deallocate(handler *const &, void *const &, const size_t &) noexcept;
|
||||
static bool continuation(handler *const &) noexcept;
|
||||
static void enter(handler *const &) noexcept;
|
||||
static void leave(handler *const &) noexcept;
|
||||
static bool fault(handler *const &) noexcept;
|
||||
|
||||
ios::descriptor *descriptor {nullptr};
|
||||
uint64_t slice_start {0};
|
||||
|
|
|
@ -158,6 +158,7 @@ ircd::ios::handler::current;
|
|||
|
||||
bool
|
||||
ircd::ios::handler::fault(handler *const &handler)
|
||||
noexcept
|
||||
{
|
||||
assert(handler && handler->descriptor);
|
||||
auto &descriptor(*handler->descriptor);
|
||||
|
@ -183,6 +184,7 @@ ircd::ios::handler::fault(handler *const &handler)
|
|||
|
||||
void
|
||||
ircd::ios::handler::leave(handler *const &handler)
|
||||
noexcept
|
||||
{
|
||||
assert(handler && handler->descriptor);
|
||||
auto &descriptor(*handler->descriptor);
|
||||
|
@ -198,6 +200,7 @@ ircd::ios::handler::leave(handler *const &handler)
|
|||
|
||||
void
|
||||
ircd::ios::handler::enter(handler *const &handler)
|
||||
noexcept
|
||||
{
|
||||
assert(handler && handler->descriptor);
|
||||
auto &descriptor(*handler->descriptor);
|
||||
|
@ -213,6 +216,7 @@ ircd::ios::handler::enter(handler *const &handler)
|
|||
|
||||
bool
|
||||
ircd::ios::handler::continuation(handler *const &handler)
|
||||
noexcept
|
||||
{
|
||||
assert(handler && handler->descriptor);
|
||||
auto &descriptor(*handler->descriptor);
|
||||
|
@ -223,6 +227,7 @@ void
|
|||
ircd::ios::handler::deallocate(handler *const &handler,
|
||||
void *const &ptr,
|
||||
const size_t &size)
|
||||
noexcept
|
||||
{
|
||||
assert(handler && handler->descriptor);
|
||||
auto &descriptor(*handler->descriptor);
|
||||
|
|
Loading…
Reference in a new issue