about summary refs log tree commit diff
path: root/src/libcore/task
AgeCommit message (Collapse)AuthorLines
2018-06-29Make Waker and LocalWaker UnpinTaylor Cramer-0/+3
These types never project pinned-ness into their contents, so it is safe for them to be `Unpin`.
2018-06-26Move spawn errors into executor.rsJosef Reinhard Brandl-67/+50
2018-06-26Nested `LocalTaskObj` in `TaskObj`, remove `SpawnErrorObj` conversionsJosef Reinhard Brandl-75/+34
2018-06-26Add `LocalTaskObj`Josef Reinhard Brandl-6/+102
2018-06-26Split libcore/task.rs into submodulesJosef Reinhard Brandl-0/+676
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-2286/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-20core::rt: Implement Local for TaskBrian Anderson-5/+6
2013-05-20core::rt: Convert users of local_sched to Local traitBrian Anderson-1/+2
2013-05-20core:rt:: Rename LocalServices to TaskBrian Anderson-6/+6
2013-05-19Register snapshotsBrian Anderson-5/+0
2013-05-19auto merge of #6106 : thestinger/rust/iter, r=bstriebors-10/+9
I don't have a strong opinion on the function vs. method, but there's no point in having both. I'd like to make a `repeat` adaptor like Python/Haskell for turning a value into an infinite stream of the value, so this has to at least be renamed.
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-10/+10
2013-05-18replace old_iter::repeat with the Times traitDaniel Micay-10/+9
2013-05-15Merge remote-tracking branch 'brson/io' into incomingBrian Anderson-19/+35
2013-05-15core::rt: Rename Task to CoroutineBrian Anderson-1/+1
2013-05-15core: Turn task::unkillable, etc. into no-ops in newsched. #6377Brian Anderson-17/+33
Not necessary just yet but they make ARC not work.
2013-05-15auto merge of #6493 : brson/rust/tls, r=thestingerbors-4/+2
2013-05-14core: Fix leak in TLS. #6231Brian Anderson-4/+2
2013-05-14Merge remote-tracking branch 'brson/io-upstream' into incomingBrian Anderson-1/+1
Conflicts: src/libcore/logging.rs src/libcore/rt/local_services.rs src/libcore/rt/uv/mod.rs src/libcore/rt/uv/net.rs src/libcore/rt/uv/uvio.rs src/libcore/unstable.rs
2013-05-14core::rt: Use unsafe pointers instead of transmuted regionsBrian Anderson-1/+1
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.