]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #12235 : huonw/rust/raii-lock, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 15 Feb 2014 23:21:28 +0000 (15:21 -0800)
committerbors <bors@rust-lang.org>
Sat, 15 Feb 2014 23:21:28 +0000 (15:21 -0800)
- adds a `LockGuard` type returned by `.lock` and `.trylock` that unlocks the mutex in the destructor
- renames `mutex::Mutex` to `StaticNativeMutex`
- adds a `NativeMutex` type with a destructor
- removes `LittleLock`
- adds `#[must_use]` to `sync::mutex::Guard` to remind people to use it

1  2 
src/libsync/sync/mutex.rs

Simple merge