diff options
| author | Tobias Schaffner <tschaff@genua.de> | 2017-09-09 11:09:34 +0200 |
|---|---|---|
| committer | Sebastian Humenda <shumenda@gmx.de> | 2017-09-13 10:56:41 +0200 |
| commit | b2b50635172254777d16d0fc6112e6d5b68b63f2 (patch) | |
| tree | 37e3b004a9dd7ab32ba846aab3ae738962e09259 /src/libstd/sys/redox | |
| parent | 5d1a9d7ae761cb7fd88b37bab0d55f59379462ef (diff) | |
Move default stack min size to thread implementations
The default min stack size value is smaller on l4re and therefore this value has to be different depending on the platform.
Diffstat (limited to 'src/libstd/sys/redox')
| -rw-r--r-- | src/libstd/sys/redox/thread.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/sys/redox/thread.rs b/src/libstd/sys/redox/thread.rs index b2c0e285f06..c4aad8d86f8 100644 --- a/src/libstd/sys/redox/thread.rs +++ b/src/libstd/sys/redox/thread.rs @@ -16,6 +16,8 @@ use sys_common::thread::start_thread; use sys::{cvt, syscall}; use time::Duration; +pub const DEFAULT_MIN_STACK_SIZE: usize = 2 * 1024 * 1024; + pub struct Thread { id: usize, } |
