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