summary refs log tree commit diff
path: root/src/libsync/lock.rs
AgeCommit message (Collapse)AuthorLines
2014-03-23sync: Introduce new wrapper types for lockingAlex Crichton-0/+816
This introduces new synchronization types which are meant to be the foundational building blocks for sharing data among tasks. The new Mutex and RWLock types have a type parameter which is the internal data that is accessed. Access to the data is all performed through the guards returned, and the guards all have autoderef implemented for easy access.