about summary refs log tree commit diff
path: root/src/libextra/arc.rs
AgeCommit message (Collapse)AuthorLines
2013-09-25rustdoc: Change all code-blocks with a scriptAlex Crichton-4/+4
find src -name '*.rs' | xargs sed -i '' 's/~~~.*{\.rust}/```rust/g' find src -name '*.rs' | xargs sed -i '' 's/ ~~~$/ ```/g' find src -name '*.rs' | xargs sed -i '' 's/^~~~$/ ```/g'
2013-09-24Correctly encode item visibility in metadataAlex Crichton-2/+2
This fixes private statics and functions from being usable cross-crates, along with some bad privacy error messages. This is a reopening of #8365 with all the privacy checks in privacy.rs instead of resolve.rs (where they should be anyway). These maps of exported items will hopefully get used for generating documentation by rustdoc Closes #8592
2013-09-16switch Drop to `&mut self`Daniel Micay-1/+1
2013-09-04Use MuextArc and RWArc in docstringsFlaper Fesp-5/+5
2013-09-04Fixed docs and stylesFlaper Fesp-122/+30
2013-09-04Add a safe implementation of MutexArc::access* methodsFlaper Fesp-21/+162
Current access methods are nestable and unsafe. This patch renames current methods implementation - prepends unsafe_ - and implements 2 new methods that are both safe and un-nestable. Fixes #7473
2013-09-04Rename MutexArc access methods to unsafe_accessFlaper Fesp-9/+9
2013-08-31Cleanup concurrency testsSteven Stewart-Gallus-49/+49
In this commit I: - removed unneeded heap allocations - added extra whitespace to crowded expressions - and removed unneeded syntax
2013-08-27Rename UnsafeAtomicRcBox to UnsafeArc. Fixes #7674.Huon Wilson-7/+7
2013-08-22Enabled unit tests in std and extra.Vadim Chugunov-9/+9
2013-08-16Reserve 'yield' keywordKevin Ballard-4/+4
Rename task::yield() to task::deschedule(). Fixes #8494.
2013-08-09Remove the C++ runtime. SayonaraBrian Anderson-2/+2
2013-08-08auto merge of #8385 : cmr/rust/big-rollup, r=alexcrichtonbors-10/+4
This is a fairly large rollup, but I've tested everything locally, and none of it should be platform-specific. r=alexcrichton (bdfdbdd) r=brson (d803c18) r=alexcrichton (a5041d0) r=bstrie (317412a) r=alexcrichton (135c85e) r=thestinger (8805baa) r=pcwalton (0661178) r=cmr (9397fe0) r=cmr (caa4135) r=cmr (6a21d93) r=cmr (4dc3379) r=cmr (0aa5154) r=cmr (18be261) r=thestinger (f10be03)
2013-08-07std: Fix for-range loops that can use iteratorsblake2-ppc-10/+4
Fix inappropriate for-range loops to use for-iterator constructs (or other appropriate solution) instead.
2013-08-07Disable linked failure testsBrian Anderson-0/+1
The implementation currently contains a race that leads to segfaults.
2013-08-03remove obsolete `foreach` keywordDaniel Micay-3/+3
this has been replaced by `for`
2013-08-03Explicitly impl Clone for RWArcKevin Ballard-14/+12
RWArc had a clone() method, but it was part of impl RWArc instead of an implementation of Clone. Stick with the explicit implementation instead of deriving Clone so we can have a docstring. Fixes #8052.
2013-08-02replace `range` with an external iteratorDaniel Micay-3/+2
2013-08-01auto merge of #8190 : thestinger/rust/for, r=thestingerbors-6/+6
2013-08-01std: Change `Times` trait to use `do` instead of `for`blake2-ppc-6/+6
Change the former repetition:: for 5.times { } to:: do 5.times { } .times() cannot be broken with `break` or `return` anymore; for those cases, use a numerical range loop instead.
2013-08-01auto merge of #8164 : brson/rust/noportset, r=pcwaltonbors-4/+0
...haredChan.
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-1/+1
2013-07-31std: Remove PortSet. Not supported by new scheduler. Replace uses with ↵Brian Anderson-4/+0
SharedChan.
2013-07-30UnsafeArc methods return unsafe pointers, so are not themselves unsafe.Ben Blum-3/+3
2013-07-27Fix nits.Steven Stewart-Gallus-8/+9
2013-07-27Change concurrency primitives to standard naming conventionsSteven Stewart-Gallus-110/+110
To be more specific: `UPPERCASETYPE` was changed to `UppercaseType` `type_new` was changed to `Type::new` `type_function(value)` was changed to `value.method()`
2013-07-22new snapshotDaniel Micay-1/+0
2013-07-20Reimplement ARC::unwrap() and friends.Ben Blum-8/+72
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-1/+1
2013-06-30auto merge of #7468 : cmr/rust/great_renaming, r=pcwaltonbors-10/+8
2013-06-29Removing a lot of usage of '&const'Alex Crichton-2/+2
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-10/+8
2013-06-29Rename #[mutable] to #[no_freeze]Brian Anderson-1/+2
2013-06-28librustc: Change "Owned" to "Send" everywherePatrick Walton-14/+14
2013-06-28librustc: Rename Const to FreezePatrick Walton-10/+10
2013-06-27auto merge of #7430 : huonw/rust/vec-kill, r=thestingerbors-1/+0
2013-06-28extra: silence some test warnings.Huon Wilson-1/+0
2013-06-27auto merge of #7361 : brson/rust/incoming, r=brsonbors-1/+1
2013-06-25auto merge of #7269 : luqmana/rust/drop, r=thestingerbors-1/+1
Finally rename finalize to drop. Closes #4332.
2013-06-25Merge remote-tracking branch 'mozilla/master' into incomingBrian Anderson-4/+7
Conflicts: src/librustc/middle/astencode.rs src/librustc/middle/check_const.rs
2013-06-25Change finalize -> drop.Luqman Aden-1/+1
2013-06-25remove `each` from vec, HashMap and HashSetDaniel Micay-4/+7
2013-06-24Merge remote-tracking branch 'reusee/master' into HEADBrian Anderson-1/+1
2013-06-23vec: remove BaseIter implementationDaniel Micay-3/+4
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-22replaced some 'std::' with 'extra::' in commentsreus-1/+1
2013-06-21libextra: cleanup warningsJames Miller-9/+7
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-11/+11
2013-06-13Improve comments in sync and arc a bit more.Ben Blum-4/+4
2013-06-13Add a test case for #7065.Ben Blum-0/+62
2013-06-12remove bitrotted cant_nest field from RWARC (the #[mutable] tag suffices)Ben Blum-3/+1