diff options
| author | Baoshan Pang <baoshan.pang@windriver.com> | 2019-09-01 17:56:36 -0700 |
|---|---|---|
| committer | Baoshan Pang <baoshan.pang@windriver.com> | 2019-09-01 19:20:37 -0700 |
| commit | db576f8103ed0cdda4e77d977c1eab8456233e11 (patch) | |
| tree | 216b27870b5b7e9f62f82b043dfe4fbddeaadf8e /src/libstd/sys/vxworks/thread.rs | |
| parent | d5ef9df032ec32c48d6c59050735352c48ff16f8 (diff) | |
| download | rust-db576f8103ed0cdda4e77d977c1eab8456233e11.tar.gz rust-db576f8103ed0cdda4e77d977c1eab8456233e11.zip | |
vxWorks: set DEFAULT_MIN_STACK_SIZE to 256K and use min_stack to pass initial stack size to rtpSpawn
Diffstat (limited to 'src/libstd/sys/vxworks/thread.rs')
| -rw-r--r-- | src/libstd/sys/vxworks/thread.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/sys/vxworks/thread.rs b/src/libstd/sys/vxworks/thread.rs index ef896f6a6e8..f9305afdeb6 100644 --- a/src/libstd/sys/vxworks/thread.rs +++ b/src/libstd/sys/vxworks/thread.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2019 Wind River Systems, Inc. + use crate::cmp; use crate::ffi::CStr; use crate::io; @@ -8,7 +10,7 @@ use crate::time::Duration; use crate::sys_common::thread::*; -pub const DEFAULT_MIN_STACK_SIZE: usize = 2 * 1024 * 1024; +pub const DEFAULT_MIN_STACK_SIZE: usize = 0x40000; // 256K pub struct Thread { id: libc::pthread_t, |
