summary refs log tree commit diff
path: root/src/libcore/task.rs
AgeCommit message (Collapse)AuthorLines
2012-10-11Remove comment that is now falseTim Chevalier-2/+2
2012-10-11Update FIXME numberTim Chevalier-4/+4
2012-10-04Remove by-copy mode from std, mostlyTim Chevalier-19/+19
One instance remains in net_tcp due to a foreign fn. Lots of instances remain in serialization.rs, but IIRC that is being removed. I had to do unholy things to task-perf-word-count-generic to get it to compile after demoding pipes. I may well have messed up its performance, but it passes.
2012-10-04Forbid deprecated modes again in coreTim Chevalier-1/+2
Sadly, there's only one file that requires deprecated modes (stackwalk)... So, forbid them everywhere else.
2012-10-04De-mode comm::ChanTim Chevalier-21/+21
2012-10-02Removing explicit uses of + modeTim Chevalier-8/+8
This removes most explicit uses of the + argument mode. Pending a snapshot, I had to remove the forbid(deprecated_modes) pragma from a bunch of files. I'll put it back! + mode still has to be used in a few places for functions that get moved (see task.rs) The changes outside core and std are due to the to_bytes trait and making the compiler (with legacy modes on) agree with the libraries (with legacy modes off) about modes.
2012-10-02De-export comm, task. Part of #3583.Graydon Hoare-67/+23
2012-10-01core::task - typo in commentDaniel Patterson-1/+1
2012-09-28Add a demoded version of ptr::addr_ofTim Chevalier-2/+2
Currently, the new version is ptr::p2::addr_of and the old one is ptr::addr_of. This is kind of cheesy, but I need a snapshot before I can ditch the old version, since the pipe compiler generates calls to addr_of. core is converted over to use the new version, std is not.
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-76/+0
2012-09-23Make it illegal to use modes in a fn signature with providingNiko Matsakis-6/+6
an explicit variable name. (Step one to changing the defaults) First step to #3535
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-0/+1
#[legacy_exports];
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-0/+76
2012-09-19core: Hide the docs for the private TaskBuilder implBrian Anderson-0/+2
2012-09-19core: Decompose task into more submodulesBrian Anderson-776/+29
2012-09-19core: Split local_data into local_data/local_data_privBrian Anderson-3/+4
2012-09-19core: Move TLS to task::local_dataBrian Anderson-343/+8
2012-09-19core: More doc cleanupBrian Anderson-4/+2
2012-09-19V2: now with more locks!Philipp Brüschweiler-5/+5
2012-09-19core: Allocate threads on demand, not on scheduler startupPhilipp Brüschweiler-2/+29
API change: rust_kernel::create_scheduler() or rust_scheduler::rust_scheduler() respecitevly now take ownership of the launch factory argument, it is needed to create new threads on demand. Also renames rustrt::sched_threads() to rustrt::rust_sched_threads() for consistency. Added rustrt::rust_max_sched_threads() to return the maximal number of scheduled threads of the current scheduler. Fixes #3493.
2012-09-19De-mode vec::each() and many of the str iteration routinesNiko Matsakis-1/+1
Note that the method foo.each() is not de-moded, nor the other vec routines.
2012-09-18core: Rename 'unsafe' mod to 'cast'Brian Anderson-18/+18
2012-09-18core: Move Exclusive and SharedMutableState to the private modBrian Anderson-6/+6
2012-09-14rustc: Back out box annihilatorPatrick Walton-0/+6
2012-09-13Fix broken test in core::taskBrian Anderson-4/+8
2012-09-13rt: Implement ThreadPerCore scheduling modePhilipp Brüschweiler-4/+14
Fixes #3465.
2012-09-11Make moves explicit in argumentsTim Chevalier-10/+10
2012-09-10Make moves explicit in task; also make option::unwrap take its argument by moveTim Chevalier-50/+51
2012-09-10rustc: Make shape-based compare glue never called for comparison operators.Patrick Walton-0/+40
Only called for string patterns.
2012-09-08core: missed rebase cruft cleanupJeff Olson-4/+0
2012-09-08core: most rebase cruft cleanupJeff Olson-2/+3
2012-09-08core: change notify_chan eq checks to is_none(), insteadJeff Olson-9/+8
2012-09-08core/std: finish making futures sendable + test.. still issuesJeff Olson-1/+1
2012-09-08core/std: an unending parade of minor tweaks due to renaming Option et alJeff Olson-3/+3
2012-09-08core: cleanup in task.rs for things missed in last rebaseJeff Olson-7/+7
2012-09-08core: fix breakage in TaskBuilder.future_resultJeff Olson-7/+15
the actual "fix" in this change is the chunk that moves `let x = self.consume()` to after the option dance that results in the `notify_chan` in TaskBuilder.try() the rest is cleanup/sense-making of what some of this code is doing (I'm looking at you, future_result)
2012-09-08core: changing pipes::port/chan_one to Port/ChanOne in unsafe.rsJeff Olson-1/+1
2012-09-08core: Fix stage0 build errorsBrian Anderson-19/+48
2012-09-08core: port task.rs to comm::Chan/Port to pipes::Chan/PortJeff Olson-38/+135
2012-09-07Convert all kind bounds to camel case. Remove send, owned keywords.Brian Anderson-21/+21
2012-09-07Remove 'let' syntax for struct fieldsBrian Anderson-10/+10
2012-09-07rustc: Add an "ne" method to the Eq trait, and implement it everywherePatrick Walton-3/+5
2012-09-04Remove 'with'Brian Anderson-25/+25
2012-09-04core: Remove struct ctorsBrian Anderson-16/+41
2012-09-04libcore: "import" -> "use"Patrick Walton-2/+2
2012-09-01Demode reinterpret_castBrian Anderson-7/+8
2012-08-30Migrate core::send_map to random, keyed hashes w/ hash::Hash trait.Graydon Hoare-11/+1
2012-08-29rustc: Make `<` and `=` into traitsPatrick Walton-3/+41
2012-08-27libcore: Replace a bunch of "== None" with ".is_none()".Patrick Walton-2/+2
Generally, "== None" calls into the shape glue, and it's also more useful.
2012-08-27libcore: Fix a use of the shape glue in TLSPatrick Walton-1/+1