2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-16 13:22:17 +00:00

add noexcept keyword to scheduler::wait_until() and context::wait_until()

This commit is contained in:
Oliver Kowalke
2015-09-19 16:15:13 +02:00
parent 4e1e9fc240
commit 59946d4426
4 changed files with 4 additions and 4 deletions

View File

@@ -253,7 +253,7 @@ public:
void yield() noexcept;
bool wait_until( std::chrono::steady_clock::time_point const&);
bool wait_until( std::chrono::steady_clock::time_point const&) noexcept;
bool is_main_context() const noexcept {
return 0 != ( flags_ & flag_main_context);

View File

@@ -87,7 +87,7 @@ public:
void yield( context *) noexcept;
bool wait_until( context *, std::chrono::steady_clock::time_point const&);
bool wait_until( context *, std::chrono::steady_clock::time_point const&) noexcept;
void re_schedule( context *) noexcept;
};

View File

@@ -164,7 +164,7 @@ context::yield() noexcept {
}
bool
context::wait_until( std::chrono::steady_clock::time_point const& tp) {
context::wait_until( std::chrono::steady_clock::time_point const& tp) noexcept {
BOOST_ASSERT( nullptr != scheduler_);
BOOST_ASSERT( this == active_);

View File

@@ -206,7 +206,7 @@ scheduler::yield( context * active_ctx) noexcept {
bool
scheduler::wait_until( context * active_ctx,
std::chrono::steady_clock::time_point const& sleep_tp) {
std::chrono::steady_clock::time_point const& sleep_tp) noexcept {
BOOST_ASSERT( nullptr != active_ctx);
BOOST_ASSERT( ! active_ctx->is_terminated() );
BOOST_ASSERT( ! active_ctx->ready_is_linked() );