about summary refs log tree commit diff
path: root/src/libcore/task
AgeCommit message (Collapse)AuthorLines
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-8/+8
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-13Remove re-exports from libcore/core.rcAlex Crichton-2/+1
Also fix up all the fallout elsewhere throughout core. It's really nice being able to have the prelude.
2013-05-13core: Move locks, atomic rc to unstable::syncBrian Anderson-6/+7
2013-05-11Warning policeTim Chevalier-1/+1
2013-05-10auto merge of #6223 : alexcrichton/rust/issue-6183, r=pcwaltonbors-5/+8
Closes #6183. The first commit changes the compiler's method of treating a `for` loop, and all the remaining commits are just dealing with the fallout. The biggest fallout was the `IterBytes` trait, although it's really a whole lot nicer now because all of the `iter_bytes_XX` methods are just and-ed together. Sadly there was a huge amount of stuff that's `cfg(stage0)` gated, but whoever lands the next snapshot is going to have a lot of fun deleting all this code!
2013-05-10core: Use the new `for` protocolAlex Crichton-5/+8
2013-05-10Move core::task::local_data to core::local_dataYoungsoo Son-228/+1
2013-05-09auto merge of #6345 : seanmoon/rust/fix-typos, r=sanxiynbors-1/+1
Hi there, Really enjoying Rust. Noticed a few typos so I searched around for a few more--here's some fixes. Ran `make check` and got `summary of 24 test runs: 4868 passed; 0 failed; 330 ignored`. Thanks! Sean
2013-05-08libcore: Fix tests.Patrick Walton-47/+52
2013-05-08librustc: Stop parsing modes and remove them entirely from the languagePatrick Walton-3/+3
2013-05-08test: Fix tests and the pipe compilerPatrick Walton-0/+2
2013-05-08libcore: Remove mutable fields from the task builder APIPatrick Walton-119/+61
2013-05-08libcore: Remove mutable fields from task::spawnPatrick Walton-42/+68
2013-05-09Fix typosSean Moon-1/+1
2013-05-07core: Replace Durable with 'staticBrian Anderson-12/+12
2013-05-07Add some tests for local data + borrowed pointersBrian Anderson-0/+9
2013-05-03core: Warning policeTim Chevalier-1/+1
2013-05-02Merge remote-tracking branch 'brson/io' into incomingBrian Anderson-29/+107
Conflicts: mk/rt.mk src/libcore/run.rs
2013-05-02mod items need to be marked with `cfg(test)` not `test`.Felix S. Klock II-1/+1
2013-04-30auto merge of #6113 : brson/rust/task-drop, r=graydonbors-56/+21
2013-04-30Merge remote-tracking branch 'brson/io'Brian Anderson-29/+107
Conflicts: src/libcore/task/local_data_priv.rs
2013-04-29librustc: Rename `reinterpret_cast` to `transmute_copy` and remove the intrinsicPatrick Walton-7/+3
2013-04-29librustc: Remove `ptr::addr_of`.Patrick Walton-3/+3
2013-04-29core: Replace uses of 'drop' in task module with 'finally'. #5379Brian Anderson-56/+21
2013-04-28make way for a new iter moduleDaniel Micay-9/+9
2013-04-24Rename cleanup_task_local_map_ to cleanup_task_local_map_extern_cbBrian Anderson-2/+2
Per pcwalton's suggestion.
2013-04-24core: Warning policeBrian Anderson-1/+0
2013-04-23core: Convert reinterpret_cast to transmute in TLS. #6039Brian Anderson-11/+6
2013-04-23Merge remote-tracking branch 'brson/io'Brian Anderson-29/+113
This also reverts some changes to TLS that were leaking memory. Conflicts: src/libcore/rt/uv/net.rs src/libcore/task/local_data_priv.rs src/libcore/unstable/lang.rs
2013-04-23core::rt: Tasks to not require an unwinderBrian Anderson-1/+10
A task without an unwinder will abort the process on failure. I'm using this in the runtime tests to guarantee that a call to `assert!` actually triggers some kind of failure (an abort) instead of silently doing nothing. This is essentially in lieu of a working linked failure implementation.
2013-04-23core, rustc: Warning policeTim Chevalier-1/+1
2013-04-22core::rt: Add unwinding to newsched tasksBrian Anderson-2/+16
2013-04-22core::rt Wire up task-local storage to the new schedulerBrian Anderson-22/+83
2013-04-20core: remove unused 'mut' variablesAlex Crichton-1/+1
2013-04-20Replaced many instances of reinterpret_cast with transmuteMatthijs Hofstra-5/+5
2013-04-20core::rt: Add a test mod and put run_in_newsched_task thereBrian Anderson-1/+1
2013-04-19core: clean up tests (mostly unused unsafe blocks)Alex Crichton-21/+17
2013-04-19core::rt: Simplify some scheduler operationsBrian Anderson-2/+1
2013-04-19core: More tweaks to the thread-local scheduler interfaceBrian Anderson-1/+1
2013-04-19core: Wire up `spawn` to the new schedulerBrian Anderson-0/+38
It will check which scheduler it is running under and create the correct type of task as appropriate. Most options aren't supported but basic spawning works.
2013-04-19core: Don't use managed boxes in TaskBuilderBrian Anderson-7/+32
2013-04-18core::comm: Modernize constructors to use `new`Brian Anderson-2/+2
2013-04-18libcore: make spawn_supervised documentation reflect its behaviour.Huon Wilson-2/+3
2013-04-16libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no ↵Huon Wilson-1/+1
pub mod or pub fn).
2013-04-14core: remove unnecessary unsafe blocks/functionsAlex Crichton-27/+56
2013-04-10core: changes in response to #5656Niko Matsakis-1/+1
2013-04-08core: Remove all but one drop block in favor of `finally`Brian Anderson-52/+17
2013-04-03rename Linear{Map,Set} => Hash{Map,Set}Daniel Micay-3/+3
2013-04-03hashmap: rm linear namespaceDaniel Micay-1/+1
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-28/+28