about summary refs log tree commit diff
path: root/src/lib/task.rs
AgeCommit message (Collapse)AuthorLines
2011-12-06Establish 'core' library separate from 'std'.Graydon Hoare-350/+0
2011-11-18rt: Remove some stack-wasting macros from rust_task::yieldBrian Anderson-0/+1
2011-11-18rt: Remove fail calls from rust_task::yieldBrian Anderson-2/+6
2011-11-18intrinsics: Remove the call to get_task from task_sleepBrian Anderson-2/+6
2011-11-18Update stdlib, compiler, and tests to new kind systemMarijn Haverbeke-5/+5
This involved adding 'copy' to more generics than I hoped, but an experiment with making it implicit showed that that way lies madness -- unless enforced, you will not remember to mark functions that don't copy as not requiring copyable kind. Issue #1177
2011-11-17remove compile-command from local variable blocksNiko Matsakis-1/+0
2011-11-16fix alignment for chan_handle structs; rust equiv is translatedNiko Matsakis-2/+2
to char[16], not struct{long,long}
2011-11-16change u32 to uint. maybe we want an intptr_t built-in type.Niko Matsakis-1/+1
2011-11-16Use attributes for native module ABI and link nameHaitao Li-2/+5
This patch changes how to specify ABI and link name of a native module. Before: native "cdecl" mod llvm = "rustllvm" {...} After: #[abi = "cdecl"] #[link_name = "rustllvm"] native mod llvm {...} The old optional syntax for ABI and link name is no longer supported. Fixes issue #547
2011-11-09Rename "c-stack-cdecl" ABI to "cdecl"Brian Anderson-1/+1
2011-11-08Clean up std::taskBrian Anderson-12/+12
2011-11-08Make task_sleep an intrinsic.Brian Anderson-1/+1
2011-11-08rt: Remove task_yield builtinBrian Anderson-2/+1
This is just a special case of task_sleep
2011-11-08start_task can run on the C stackBrian Anderson-2/+4
2011-10-28stdlib: Make reinterpret_cast and leak unsafeBrian Anderson-2/+2
2011-10-28Move to short type parameter keywordsMarijn Haverbeke-5/+5
Issue #1076
2011-10-27Add more std docsBrian Anderson-7/+158
2011-10-27Cleanup in std::taskBrian Anderson-13/+13
2011-10-27More std docsBrian Anderson-0/+5
2011-10-26Remove task::join_idBrian Anderson-5/+0
This is the old, racy way of joining to a task. It is no longer used.
2011-10-25Update our code to new type parameter kind syntaxMarijn Haverbeke-6/+6
Closes #1067
2011-10-24move remaining task natives to cdecl ABI (run on rust stack)Niko Matsakis-10/+12
2011-10-24isolate those funcs in task that can run on the c stackNiko Matsakis-19/+20
2011-10-24move sys fns into c-stack-cdecl and get_type_desc() into rustiNiko Matsakis-2/+1
there is one test failure, stdtest/sys.rs, which inexplicably (thus far) fails to compile because it invokes sys::rustrt::last_os_error() instead of invoking sys::last_os_error(). If stdtest/sys.rs is updated to invoke the wrapper, it passes. Still tracing the source of this error.
2011-10-20Remove temporary fn# syntaxBrian Anderson-5/+5
2011-10-20Make fn denote a bare function. Convert fn to fn@ as neededBrian Anderson-1/+1
2011-10-20Drop the 2 from the spawn*2 functionsBrian Anderson-7/+7
Issue #1022
2011-10-20Rename std::task::spawn_inner to unsafe_spawn_innerBrian Anderson-15/+5
Delete the rest of the old, unused spawn functions. Issue #1022
2011-10-20Stop exporting unsafe spawn functionsBrian Anderson-3/+0
Issue #1022
2011-10-20Add safe versions of spawn using bare functionsBrian Anderson-0/+44
Currently they just wrap the unsafe versions. Will need to be rewritten eventually. Issue #1022
2011-10-20Do not pass taskpointers to "rust" native functionsMarijn Haverbeke-1/+0
Issue #466
2011-10-12reimplement some of the unsafe stuff which got lostNiko Matsakis-1/+1
- blocks inherit unsafety - remove the --check-unsafe flag - add unsafe annotations where needed to get things to compile
2011-09-26Enforce copy restrictions on let initializersBrian Anderson-1/+1
2011-09-12Factor imports mindlessly.Graydon Hoare-2/+1
2011-09-12Pretty-print for new arg-mode syntaxMarijn Haverbeke-4/+4
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-3/+3
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-07Rewrite spawn yet againBrian Anderson-62/+15
The motivation here is that the bottom of each stack needs to contain a C++ try/catch block so that we can unwind. This is already the case for main, but not spawned tasks. Issue #236
2011-09-02Reformat. Issue #855Brian Anderson-1/+1
2011-09-01Convert all uses of #ifmt to #fmt. Issue #855Brian Anderson-1/+1
2011-08-31Convert uses of #fmt to #ifmt. Issue #855Brian Anderson-1/+1
2011-08-25Cleaning up task and comm exports, updating all the test cases.Eric Holk-8/+25
2011-08-23Add kind-checking for assign-op, copy, ret, be, fail exprs. Fix caught ↵Graydon Hoare-5/+1
kinding-violations in rustc and libstd.
2011-08-22Promote std::task::rustrt::leak to std::unsafe::leakBrian Anderson-3/+1
I want to use this for std::istr
2011-08-20ReformatBrian Anderson-82/+64
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-17Better type inference for chans and ports.Eric Holk-12/+9
2011-08-17Convenience methods for spawning and joining tasks.Eric Holk-2/+17
2011-08-17Making more of the rust_task structure directly accessible from Rust.Eric Holk-16/+29
2011-08-17Using move-mode for spawn thunks to avoid race conditions.Eric Holk-4/+5
2011-08-16Updating to new type parameter syntax.Eric Holk-3/+3
2011-08-16New channel-based task status notifications.Eric Holk-9/+43