aboutsummaryrefslogtreecommitdiff
path: root/ctr-std/src/sys/unix/thread.rs
diff options
context:
space:
mode:
authorFenrir <[email protected]>2017-03-06 23:18:03 -0700
committerFenrir <[email protected]>2017-03-06 23:18:03 -0700
commitee524875c13b894be8138ae36172a7b410583ecb (patch)
tree8ed882bdd90d8d7a7f00cef25a99e06ed0ed2cc6 /ctr-std/src/sys/unix/thread.rs
parentTerminate all threads when panicking (diff)
downloadctru-rs-ee524875c13b894be8138ae36172a7b410583ecb.tar.xz
ctru-rs-ee524875c13b894be8138ae36172a7b410583ecb.zip
Bump minimum thread stack size
FBI uses 64kb threads so it must be legit
Diffstat (limited to 'ctr-std/src/sys/unix/thread.rs')
-rw-r--r--ctr-std/src/sys/unix/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctr-std/src/sys/unix/thread.rs b/ctr-std/src/sys/unix/thread.rs
index f100f3d..572ac72 100644
--- a/ctr-std/src/sys/unix/thread.rs
+++ b/ctr-std/src/sys/unix/thread.rs
@@ -34,7 +34,7 @@ unsafe impl Sync for Thread {}
impl Thread {
pub unsafe fn new<'a>(stack: usize, p: Box<FnBox() + 'a>) -> io::Result<Thread> {
let p = box p;
- let stack_size = cmp::max(stack, 4 * 1024);
+ let stack_size = cmp::max(stack, 0x10000);
// this retrieves the main thread's priority value. child threads need
// to be spawned with a greater priority (smaller priority value) than