about summary refs log tree commit diff
path: root/src/rt/sync/rust_thread.h
AgeCommit message (Collapse)AuthorLines
2013-11-05Move implementation for threads to RustDirkjan Bussink-38/+0
This binds to the appropriate pthreads_* and Windows specific functions and calls them from Rust. This allows for removal of the C++ support code for threads. Fixes #10162
2013-10-29rt: Remove rust_thread::detachBrian Anderson-1/+0
2013-10-19Use __morestack to detect stack overflowAlex Crichton-2/+0
This commit resumes management of the stack boundaries and limits when switching between tasks. This additionally leverages the __morestack function to run code on "stack overflow". The current behavior is to abort the process, but this is probably not the best behavior in the long term (for deails, see the comment I wrote up in the stack exhaustion routine).
2012-12-10Add license boilerplate to more files.Graydon Hoare-0/+10
2012-04-03Refactor includes structure, getting rid of rust_internal.hJon Morton-0/+2
Many changes to code structure are included: - removed TIME_SLICE_IN_MS - removed sychronized_indexed_list - removed region_owned - kernel_owned move to kernel.h, task_owned moved to task.h - global configs moved to rust_globals.h - changed #pragma once to standard guard in rust_upcall.h - got rid of memory.h
2012-03-31rt: Make rust_sched_launcher hide it's thread implementationBrian Anderson-3/+1
2012-02-10rt: Use 100k stacks for scheduler threadsBrian Anderson-1/+5
2012-02-09rt: Detach pthreads before exitingBrian Anderson-2/+3
Joinable pthreads need to be either joined or detached and we no longer join with the scheduler threads.
2012-02-09rt: Move rust_thread to its own filesBrian Anderson-0/+26