about summary refs log tree commit diff
path: root/src/rt/sync/rust_thread.cpp
AgeCommit message (Collapse)AuthorLines
2013-11-05Move implementation for threads to RustDirkjan Bussink-65/+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-9/+0
2013-10-19Use __morestack to detect stack overflowAlex Crichton-6/+3
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).
2013-04-04fix mac build and comment on stack size checkJyun-Yan You-0/+3
2013-04-04rt: improve mips backendJyun-Yan You-0/+3
2012-12-10Add license boilerplate to more files.Graydon Hoare-0/+10
2012-09-29rt: Check the results of pthread callsBrian Anderson-6/+6
The stage0 compiler is not working on an x86_64 debian wheezy instance and it looks like maye pthread_create is failing
2012-04-03Refactor includes structure, getting rid of rust_internal.hJon Morton-1/+1
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-28Tidy up multiple declarations and STDC_FOO_MACROS guards in headers.Graydon Hoare-1/+1
2012-02-10rt: Use 100k stacks for scheduler threadsBrian Anderson-3/+9
2012-02-09rt: Detach pthreads before exitingBrian Anderson-0/+12
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/+43