aboutsummaryrefslogtreecommitdiff
path: root/drivers/unix/thread_posix.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2014-02-13 18:03:28 -0300
committerJuan Linietsky2014-02-13 18:03:28 -0300
commit58cda02a389759d18176216c06f375d364cefef1 (patch)
tree4102902585d12ea6807ceaee1370136d29b601e1 /drivers/unix/thread_posix.cpp
parent1adc330b68b1f6ca18aac05daf88c7d4d757fd0a (diff)
downloadgodot-58cda02a389759d18176216c06f375d364cefef1.tar.gz
godot-58cda02a389759d18176216c06f375d364cefef1.tar.zst
godot-58cda02a389759d18176216c06f375d364cefef1.zip
Diffstat (limited to 'drivers/unix/thread_posix.cpp')
-rw-r--r--drivers/unix/thread_posix.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/unix/thread_posix.cpp b/drivers/unix/thread_posix.cpp
index b2f1e144b..e5d6a0257 100644
--- a/drivers/unix/thread_posix.cpp
+++ b/drivers/unix/thread_posix.cpp
@@ -56,7 +56,8 @@ Thread* ThreadPosix::create_func_posix(ThreadCreateCallback p_callback,void *p_u
tr->callback=p_callback;
tr->user=p_user;
pthread_attr_init(&tr->pthread_attr);
- pthread_attr_setdetachstate(&tr->pthread_attr, PTHREAD_CREATE_JOINABLE);
+ pthread_attr_setdetachstate(&tr->pthread_attr, PTHREAD_CREATE_JOINABLE);
+ pthread_attr_setstacksize(&tr->pthread_attr, 256 * 1024);
pthread_create(&tr->pthread, &tr->pthread_attr, thread_callback, tr);