summary refs log tree commit diff
path: root/src/libsync/arc.rs
AgeCommit message (Collapse)AuthorLines
2014-03-30Check that the old value was 1 and not 0 when dropping a Arc value.Colin Sherratt-4/+38
Closed #13210.
2014-03-24sync: Update the arc moduleAlex Crichton-929/+239
This removes the now-outdated MutexArc and RWArc types. These are superseded by Arc<Mutex<T>> and Arc<RWLock<T>>. The only remaining arc is the one true Arc. Additionally, the arc now has weak pointers implemented for it to assist in breaking cycles. This commit brings the arc api up to parity with the sibling Rc api, making them nearly interchangeable for inter and intra task communication.
2014-03-23Register new snapshotsFlavio Percoco-4/+1
2014-03-22sync: Remove Freeze / NoFreezeFlavio Percoco-13/+11
2014-03-22Remove outdated and unnecessary std::vec_ng::Vec imports.Huon Wilson-1/+0
(And fix some tests.)
2014-03-21test: Make manual changes to deal with the fallout from removal ofPatrick Walton-7/+8
`~[T]` in test, libgetopts, compiletest, librustdoc, and libnum.
2014-03-20Replace Freeze bounds with Share boundsFlavio Percoco-11/+17
2014-03-20rename std::vec -> std::sliceDaniel Micay-2/+2
Closes #12702
2014-03-13std: Rename Chan/Port types and constructorAlex Crichton-33/+34
* Chan<T> => Sender<T> * Port<T> => Receiver<T> * Chan::new() => channel() * constructor returns (Sender, Receiver) instead of (Receiver, Sender) * local variables named `port` renamed to `rx` * local variables named `chan` renamed to `tx` Closes #11765
2014-03-12Update users for the std::rand -> librand move.Huon Wilson-12/+16
2014-03-01sync: Rename arc::Condvar to arc::ArcCondvar.Huon Wilson-10/+11
The sync submodule also has a `Condvar` type, and its reexport was shadowing the `arc` type, making it crate-private.
2014-02-16Remove Freeze bounds from sync::MutexArcKevin Ballard-72/+33
With Rc no longer trying to statically prevent cycles (and thus no longer using the Freeze bound), it seems appropriate to remove that restriction from MutexArc as well.
2014-02-05move concurrent stuff from libextra to libsyncJeremyLetang-0/+1074