2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-19 14:22:23 +00:00

remove noexcept from timed wait-ops for mutex classes

This commit is contained in:
Oliver Kowalke
2015-12-29 11:30:30 +01:00
parent 12554320ae
commit 4c05ff494d
2 changed files with 4 additions and 4 deletions

View File

@@ -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);
}

View File

@@ -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);
}