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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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_);
|
||||
|
||||
|
||||
@@ -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() );
|
||||
|
||||
Reference in New Issue
Block a user