about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-11-26 02:52:04 -0800
committerbors <bors@rust-lang.org>2013-11-26 02:52:04 -0800
commit4fe129651167e4ba1a16d6ee93bc0ca38c7cf7fa (patch)
tree96637056faae22b8e417b327d8de942ce1c75d65 /src/rustllvm/RustWrapper.cpp
parent21990cdda624f5eee340311b7f8e542ab8a218e1 (diff)
parentac59888d8f466522a9802ee7d33134505794ee12 (diff)
downloadrust-4fe129651167e4ba1a16d6ee93bc0ca38c7cf7fa.tar.gz
rust-4fe129651167e4ba1a16d6ee93bc0ca38c7cf7fa.zip
auto merge of #10660 : alexcrichton/rust/little-scope, r=pcwalton
This moves the locking/waiting methods to returning an RAII struct instead of
relying on closures. Additionally, this changes the methods to all take
'&mut self' to discourage recursive locking. The new method to block is to call
`wait` on the returned RAII structure instead of calling it on the lock itself
(this enforces that the lock is held).

At the same time, this improves the Mutex interface a bit by allowing
destruction of non-initialized members and by allowing construction of an empty
mutex (nothing initialized inside).
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions