mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 16:22:19 +00:00
Merge branch 'oktonion-develop' into develop
This commit is contained in:
@@ -264,7 +264,8 @@ inline bool try_acquire_file_lock(file_handle_t hnd, bool &acquired)
|
||||
acquired = false, true : false;
|
||||
|
||||
}
|
||||
return (acquired = true);
|
||||
acquired = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool release_file_lock(file_handle_t hnd)
|
||||
@@ -293,7 +294,9 @@ inline bool try_acquire_file_lock_sharable(file_handle_t hnd, bool &acquired)
|
||||
return winapi::get_last_error() == winapi::error_lock_violation ?
|
||||
acquired = false, true : false;
|
||||
}
|
||||
return (acquired = true);
|
||||
|
||||
acquired = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool release_file_lock_sharable(file_handle_t hnd)
|
||||
|
||||
Reference in New Issue
Block a user