From 4c05ff494dc83ab4e3781de2e3dce3d2cf8bd4c0 Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Tue, 29 Dec 2015 11:30:30 +0100 Subject: [PATCH] remove noexcept from timed wait-ops for mutex classes --- include/boost/fiber/recursive_timed_mutex.hpp | 4 ++-- include/boost/fiber/timed_mutex.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/fiber/recursive_timed_mutex.hpp b/include/boost/fiber/recursive_timed_mutex.hpp index 5ec368f6..f86b8ac4 100644 --- a/include/boost/fiber/recursive_timed_mutex.hpp +++ b/include/boost/fiber/recursive_timed_mutex.hpp @@ -60,14 +60,14 @@ public: bool try_lock() noexcept; template< typename Clock, typename Duration > - bool try_lock_until( std::chrono::time_point< Clock, Duration > const& timeout_time_) noexcept { + bool try_lock_until( std::chrono::time_point< Clock, Duration > const& timeout_time_) { std::chrono::steady_clock::time_point timeout_time( detail::convert( timeout_time_) ); return try_lock_until_( timeout_time); } template< typename Rep, typename Period > - bool try_lock_for( std::chrono::duration< Rep, Period > const& timeout_duration) noexcept { + bool try_lock_for( std::chrono::duration< Rep, Period > const& timeout_duration) { return try_lock_until_( std::chrono::steady_clock::now() + timeout_duration); } diff --git a/include/boost/fiber/timed_mutex.hpp b/include/boost/fiber/timed_mutex.hpp index 1e91995f..e1606bfc 100644 --- a/include/boost/fiber/timed_mutex.hpp +++ b/include/boost/fiber/timed_mutex.hpp @@ -54,14 +54,14 @@ public: bool try_lock() noexcept; template< typename Clock, typename Duration > - bool try_lock_until( std::chrono::time_point< Clock, Duration > const& timeout_time_) noexcept { + bool try_lock_until( std::chrono::time_point< Clock, Duration > const& timeout_time_) { std::chrono::steady_clock::time_point timeout_time( detail::convert( timeout_time_) ); return try_lock_until_( timeout_time); } template< typename Rep, typename Period > - bool try_lock_for( std::chrono::duration< Rep, Period > const& timeout_duration) noexcept { + bool try_lock_for( std::chrono::duration< Rep, Period > const& timeout_duration) { return try_lock_until_( std::chrono::steady_clock::now() + timeout_duration); }