diff options
| author | Juan Linietsky | 2014-02-13 18:03:28 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-02-13 18:03:28 -0300 |
| commit | 58cda02a389759d18176216c06f375d364cefef1 (patch) | |
| tree | 4102902585d12ea6807ceaee1370136d29b601e1 /drivers/unix/thread_posix.cpp | |
| parent | 1adc330b68b1f6ca18aac05daf88c7d4d757fd0a (diff) | |
| download | godot-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.cpp | 3 |
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); |
