Created
October 18, 2012 15:32
-
-
Save louisbl/3912590 to your computer and use it in GitHub Desktop.
hxcpp Set stack size of thread
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pthread_attr_t attr; | |
pthread_attr_t *attrp; | |
pthread_t result; | |
int stack_size; | |
void *sp; | |
stack_size = 0x32000000; | |
attrp = &attr; | |
pthread_attr_init(&attr); | |
pthread_attr_setstack(&attr, sp, stack_size); | |
pthread_create(&result,attrp,hxThreadFunc,info); | |
pthread_attr_destroy(attrp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment