about summary refs log tree commit diff
path: root/src/libstd/rt
AgeCommit message (Collapse)AuthorLines
2013-06-18std::rt: Improve the rtabort! macroBrian Anderson-4/+64
2013-06-18std::rt: Turn on multithreaded schedulingBrian Anderson-16/+76
2013-06-17std: Rename `abort!` to `rtabort!` to match other macrosBrian Anderson-21/+21
2013-06-17std::rt: move abort function to util moduleBrian Anderson-0/+4
2013-06-17std::rt: Check exchange count on exitBrian Anderson-6/+37
2013-06-17std::rt: Add util mod and num_cpus functionBrian Anderson-5/+27
2013-06-16Merge remote-tracking branch 'brson/io'Brian Anderson-764/+2788
Conflicts: src/libstd/rt/comm.rs src/libstd/rt/mod.rs src/libstd/rt/sched.rs src/libstd/rt/task.rs src/libstd/rt/test.rs src/libstd/rt/tube.rs src/libstd/rt/uv/uvio.rs src/libstd/rt/uvio.rs src/libstd/task/spawn.rs
2013-06-15Merge remote-tracking branch 'brson/io-wip' into ioBrian Anderson-86/+778
Conflicts: src/libstd/rt/sched.rs src/libstd/rt/task.rs src/libstd/rt/test.rs src/libstd/task/mod.rs src/libstd/task/spawn.rs
2013-06-15std::rt: Tasks contain a JoinLatchBrian Anderson-32/+56
2013-06-15Merge remote-tracking branch 'toddaaro/io' into ioBrian Anderson-81/+793
2013-06-14redesigned the pinning to pin deal with things on dequeue, not on enqueuetoddaaro-201/+392
2013-06-13std::rt: Tasks must have an unwinder. SimplerBrian Anderson-41/+10
2013-06-13std::rt: Change the Task constructors to reflect a treeBrian Anderson-25/+73
2013-06-13std::rt: Add JoinLatchBrian Anderson-4/+665
This is supposed to be an efficient way to link the lifetimes of tasks into a tree. JoinLatches form a tree and when `release` is called they wait on children then signal the parent. This structure creates zombie tasks which currently keep the entire task allocated. Zombie tasks are supposed to be tombstoned but that code does not work correctly.
2013-06-13automated whitespace fixesDaniel Micay-4/+0
2013-06-13Remove unused importsSteven Stewart-Gallus-2/+0
I was able to remove unused imports, and fix the following warnings src/libstd/hashmap.rs:23:15: 23:23 warning: unused import [-W unused-imports (default)] src/libstd/task/spawn.rs:95:15: 95:23 warning: unused import [-W unused-imports (default)] src/libstd/rt/uv/mod.rs:42:0: 42:9 warning: unused import [-W unused-imports (default)] src/libstd/rt/uv/mod.rs:45:0: 45:9 warning: unused import [-W unused-imports (default)] src/librustc/middle/trans/meth.rs:26:0: 26:26 warning: unused import [-W unused-imports (default)] src/librustc/back/link.rs:210:20: 210:25 warning: unused import [-W unused-imports (default)] I was unable to fix the following unused import warnings. The code here was weird. src/libextra/std.rc:40:11: 40:14 warning: unused import [-W unused-imports (default)] src/libextra/std.rc:40:16: 40:24 warning: unused import [-W unused-imports (default)]
2013-06-12added functionality to tell schedulers to refuse to run tasks that are not ↵toddaaro-18/+60
pinned to them
2013-06-12std::rt: Remove old filesBrian Anderson-902/+0
2013-06-12A basic implementation of pinning tasks to schedulers. No IO interactions ↵toddaaro-42/+496
have been planned for, and no forwarding of tasks off special schedulers is supported.
2013-06-12std: unify the str -> [u8] functions as 3 methods: .as_bytes() and ↵Huon Wilson-2/+2
.as_bytes_with_null[_consume](). The first acts on &str and is not nul-terminated, the last two act on strings that are always null terminated (&'static str, ~str and @str).
2013-06-10std::rt: Work around a dynamic borrowck bugBrian Anderson-3/+2
2013-06-10debugged a compiler ICE when merging local::borrow changes into the main io ↵toddaaro-13/+38
branch and modified the incoming new file lang.rs to be api-compatible
2013-06-10Tag a bunch of destructors that need mutable self with FIXME for #4330. ↵Ben Blum-1/+1
Close #4943.
2013-06-10Replace str::raw::buf_as_slice with c_str_to_static_slice. Close #3843.Ben Blum-15/+1
2013-06-07std::rt: Reduce task stack size to 1MBBrian Anderson-1/+1
2013-06-06std::rt: Fix a race in the UvRemoteCallback dtorBrian Anderson-11/+15
2013-06-06std::rt: Fix stream test to be parallelBrian Anderson-4/+4
2013-06-06std::rt: Configure test threads with RUST_TEST_THREADS. Default is ncores x2Brian Anderson-2/+17
2013-06-06std: Fix stage0 buildBrian Anderson-0/+12
Conflicts: src/libstd/rt/comm.rs
2013-06-05core::rt: Add `MegaPipe`, an unbounded, multiple producer/consumer, ↵Brian Anderson-0/+71
lock-free queue
2013-06-05core::rt: Add SharedPortBrian Anderson-0/+132
2013-06-05core::rt: Implement SharedChanBrian Anderson-3/+64
2013-06-05std::rt: Remove in incorrect assertBrian Anderson-1/+3
2013-06-05std::rt: Destroy the task start closure while in task contextBrian Anderson-1/+36
2013-06-05std::rt: Use AtomicUint instead of intrinsics in commBrian Anderson-9/+9
2013-06-04librustc: Disallow multiple patterns from appearing in a "let" declaration.Patrick Walton-3/+3
You can still initialize multiple variables at once with "let (x, y) = (1, 2)".
2013-06-04std::cell: Modernize constructorsPhilipp Brüschweiler-75/+75
Part of #3853
2013-06-03rename the Ptr trait to RawPtrDaniel Micay-3/+3
Closes #6607
2013-06-02ptr: split out borrowed pointer utilitiesDaniel Micay-2/+3
The ptr module is intended to be for raw pointers. Closes #3111
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-87/+85
2013-05-30core::rt: deny(unused_imports, unused_mut, unused_variable)Brian Anderson-22/+11
2013-05-30Remove unnecessary 'use' formsDaniel Farina-1/+0
Fix a laundry list of warnings involving unused imports that glutted up compilation output. There are more, but there seems to be some false positives (where 'remedy' appears to break the build), but this particular set of fixes seems safe.
2013-05-30core::rt: Fix two multithreading bugs and add a threadring testBrian Anderson-2/+66
This properly distributes the load now
2013-05-30core::rt: Begin recording scheduler metricsBrian Anderson-8/+123
2013-05-29core::rt: Add some notes about optimizationsBrian Anderson-0/+14
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-4/+13
2013-05-29librustc: Redo the unsafe checker and make unsafe methods not callable from ↵Patrick Walton-20/+32
safe code
2013-05-29Merge remote-tracking branch 'brson/io' into incomingBrian Anderson-200/+747
Conflicts: src/libstd/rt/sched.rs
2013-05-23cleanup warnings from libstdErick Tryzelaar-11/+7
2013-05-22libstd: Fix merge fallout.Patrick Walton-0/+3238