From ebbc5a5be03144839fe1c0a791ecf39c8feca71e Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 15 Jul 2019 16:01:35 -0700 Subject: [PATCH] ircd::ios: Apply noexcept to handler border functions. --- include/ircd/ios.h | 10 +++++----- ircd/ios.cc | 5 +++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/include/ircd/ios.h b/include/ircd/ios.h index 5f490b732..de6842af8 100644 --- a/include/ircd/ios.h +++ b/include/ircd/ios.h @@ -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}; diff --git a/ircd/ios.cc b/ircd/ios.cc index 137017013..93882f36d 100644 --- a/ircd/ios.cc +++ b/ircd/ios.cc @@ -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);