]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #1157 - divergentdave:shim-pthread-try-lock, r=RalfJung
authorbors <bors@rust-lang.org>
Mon, 6 Apr 2020 13:55:53 +0000 (13:55 +0000)
committerbors <bors@rust-lang.org>
Mon, 6 Apr 2020 13:55:53 +0000 (13:55 +0000)
Add shims for RwLock::try_read/RwLock::try_write

This implements proper locking so that we can check for reentrancy and implement the `try_*` methods.

Fixes https://github.com/rust-lang/miri/issues/781


Trivial merge