summary refs log tree commit diff
path: root/src/libstd/sys/common/remutex.rs
AgeCommit message (Collapse)AuthorLines
2015-06-07change some statics to constantsOliver 'ker' Schneider-1/+1
2015-05-27Use `const fn` to abstract away the contents of UnsafeCell & friends.Eduard Burtescu-1/+1
2015-05-07std: Remove a double-box in ReentrantMutexAlex Crichton-7/+11
Perform unsafe initialization up front and then only afterward the mutex is in place do we initialize it.
2015-04-28Register new snapshotsTamir Duberstein-2/+0
2015-04-24Change name of unit test sub-module to "tests".Johannes Oertel-1/+1
Changes the style guidelines regarding unit tests to recommend using a sub-module named "tests" instead of "test" for unit tests as "test" might clash with imports of libtest.
2015-04-08Implement reentrant mutexes and make stdio use themSimonas Kazlauskas-0/+233
write_fmt calls write for each formatted field. The default implementation of write_fmt is used, which will call write on not-yet-locked stdout (and write locking after), therefore making print! in multithreaded environment still interleave contents of two separate prints. This patch implements reentrant mutexes, changes stdio handles to use these mutexes and overrides write_fmt to lock the stdio handle for the whole duration of the call.