]> git.lizzy.rs Git - rust.git/commit
Rewrite sync::mutex as thin layer over native mutexes
authorAaron Turon <aturon@mozilla.com>
Fri, 14 Nov 2014 22:33:51 +0000 (14:33 -0800)
committerAaron Turon <aturon@mozilla.com>
Fri, 21 Nov 2014 01:19:24 +0000 (17:19 -0800)
commita68ec98166bf638c6cbf4036f51036012695718d
tree7634a3e7aa83af8bc5edf8e13f3addaf4645abd0
parent91a2c0d51241677d71b8c0abc80535e580fe3939
Rewrite sync::mutex as thin layer over native mutexes

Previously, sync::mutex had to split between green and native runtime
systems and thus could not simply use the native mutex facility.

This commit rewrites sync::mutex to link directly to native mutexes; in
the future, the two will probably be coalesced into a single
module (once librustrt is pulled into libstd wholesale).
src/libsync/lib.rs
src/libsync/mpsc_intrusive.rs [deleted file]
src/libsync/mutex.rs