about summary refs log tree commit diff
path: root/src/libstd/sys/common/remutex.rs
AgeCommit message (Collapse)AuthorLines
2015-12-29Fix warnings when compiling stdlib with --testFlorian Hahn-6/+4
2015-09-08some more clippy-based improvementsAndre Bogus-2/+2
2015-08-15std: Add issues to all unstable featuresAlex Crichton-1/+3
2015-08-13Auto merge of #27684 - alexcrichton:remove-deprecated, r=aturonbors-11/+11
This commit removes all unstable and deprecated functions in the standard library. A release was recently cut (1.3) which makes this a good time for some spring cleaning of the deprecated functions.
2015-08-12Remove all unstable deprecated functionalityAlex Crichton-11/+11
This commit removes all unstable and deprecated functions in the standard library. A release was recently cut (1.3) which makes this a good time for some spring cleaning of the deprecated functions.
2015-08-12Fix ReentrantMutex documentation wrt DerefMutSimonas Kazlauskas-3/+10
Initial version of PR had an DerefMut implementation, which was later removed because it may cause mutable reference aliasing. Suggest how to implement mutability with reentrant mutex and remove the claim we implement DerefMut.
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.