]> git.lizzy.rs Git - rust.git/commit
Implement a native mutex type
authorAlex Crichton <alex@alexcrichton.com>
Thu, 14 Nov 2013 07:17:18 +0000 (23:17 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 19 Nov 2013 04:06:39 +0000 (20:06 -0800)
commit24eb1b445dd878c12ca6503a9fa040179b94e614
tree838edbe46508aea427ce043f0d0d7e5ef341d26a
parentab7fe9dd06e93986f6b11512031c891059474653
Implement a native mutex type

This mutex is built on top of pthreads for unix and the related windows apis on
windows. This is a straight port of the lock_and_signal type from C++ to rust.
Almost all operations on the type are unsafe, and it's definitely not
recommended for general use.

Closes #9105
src/libstd/unstable/mod.rs
src/libstd/unstable/mutex.rs [new file with mode: 0644]
src/rt/rust_builtin.cpp
src/rt/rustrt.def.in