2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-21 15:02:29 +00:00

fix fiber-exceptions

This commit is contained in:
Oliver Kowalke
2015-12-26 19:52:21 +01:00
parent f4925c6b08
commit 056a681459
11 changed files with 75 additions and 140 deletions

View File

@@ -89,7 +89,8 @@ recursive_timed_mutex::unlock() {
context * ctx = context::active();
detail::spinlock_lock lk( wait_queue_splk_);
if ( ctx != owner_) {
throw lock_error( static_cast< int >( std::errc::operation_not_permitted),
throw lock_error(
std::make_error_code( std::errc::operation_not_permitted),
"boost fiber: no privilege to perform the operation");
}
if ( 0 == --count_) {