about summary refs log tree commit diff
path: root/src/libcore/task/spawn.rs
AgeCommit message (Collapse)AuthorLines
2018-09-19Remove spawning from task::ContextTaylor Cramer-93/+0
2018-08-06Rename Executor trait to SpawnJosef Reinhard Brandl-0/+93
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-791/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-20core::rt: Convert users of local_sched to Local traitBrian Anderson-1/+2
2013-05-19Register snapshotsBrian Anderson-5/+0
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-2/+2
2013-05-15core::rt: Rename Task to CoroutineBrian Anderson-1/+1
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-5/+5
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-1/+0
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-10core: Use the new `for` protocolAlex Crichton-5/+8
2013-05-08libcore: Remove mutable fields from the task builder APIPatrick Walton-1/+1
2013-05-08libcore: Remove mutable fields from task::spawnPatrick Walton-42/+68
2013-04-30Merge remote-tracking branch 'brson/io'Brian Anderson-4/+4
Conflicts: src/libcore/task/local_data_priv.rs
2013-04-29librustc: Remove `ptr::addr_of`.Patrick Walton-1/+1
2013-04-23Merge remote-tracking branch 'brson/io'Brian Anderson-4/+4
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, rustc: Warning policeTim Chevalier-1/+1
2013-04-22core::rt Wire up task-local storage to the new schedulerBrian Anderson-4/+4
2013-04-20core: remove unused 'mut' variablesAlex Crichton-1/+1
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/+29
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-14core: remove unnecessary unsafe blocks/functionsAlex Crichton-2/+2
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-8/+8
2013-03-28Removing unused importsAlex Crichton-2/+4
2013-03-26librustc: Modify all code to use new lifetime binder syntaxPatrick Walton-1/+1
2013-03-26option: rm functions that duplicate methodsDaniel Micay-8/+7
2013-03-22libcore: Remove `pure` from libcore. rs=depurePatrick Walton-1/+1
2013-03-18librustc: Make the compiler ignore purity.Patrick Walton-1/+1
For bootstrapping purposes, this commit does not remove all uses of the keyword "pure" -- doing so would cause the compiler to no longer bootstrap due to some syntax extensions ("deriving" in particular). Instead, it makes the compiler ignore "pure". Post-snapshot, we can remove "pure" from the language. There are quite a few (~100) borrow check errors that were essentially all the result of mutable fields or partial borrows of `@mut`. Per discussions with Niko I think we want to allow partial borrows of `@mut` but detect obvious footguns. We should also improve the error message when `@mut` is erroneously reborrowed.
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-1/+1
notation. rs=delifetiming
2013-03-11libstd: Remove all newtype enums from std and core.Patrick Walton-1/+1
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-6/+6
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-8/+8
2013-03-06Add manual &self/ and &static/ and /&self declarations thatNiko Matsakis-1/+1
are currently inferred. New rules are coming that will require them to be explicit. All add some explicit self declarations.
2013-03-05auto merge of #5212 : thestinger/rust/iter, r=graydonbors-5/+3
A small step towards fixing #2827
2013-03-04Remove unused imports throughout src/Alex Crichton-2/+0
2013-03-03replace option::iter with a BaseIter implDaniel Micay-5/+3
2013-03-02libcore: Remove `fn@`, `fn~`, and `fn&` from libcore. rs=defunPatrick Walton-11/+14
2013-03-01Rename core::private to core::unstable. #4743Brian Anderson-7/+7
2013-02-27Turn old `drop` blocks into `Drop` traitsBen Striegel-2/+8
2013-02-26libcore: Move Cell to core and de-~mut core and stdPatrick Walton-4/+5
2013-02-21core: Extract comm from pipes. #4742Brian Anderson-3/+3
2013-02-15libcore: Get rid of `move`.Luqman Aden-34/+34
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-5/+5
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-1/+0
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-02-01core: Remove oldcommBrian Anderson-1/+0
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-15/+15