mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
support thread-stack-size for OS X simple threading implementation
This commit is contained in:
parent
878486712f
commit
9bf5812c93
@ -91,7 +91,9 @@ init_thread_context(struct ThreadContext *context,
|
||||
|
||||
pthread_attr_t attr;
|
||||
pthread_attr_init(&attr);
|
||||
pthread_attr_setstacksize(&attr, stack_size);
|
||||
pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM);
|
||||
|
||||
pthread_create(&(context->_thread), &attr, thread_main, context);
|
||||
pthread_attr_destroy(&attr);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user