Skip to content

Instantly share code, notes, and snippets.

@louisbl
Created October 18, 2012 15:32
Show Gist options
  • Save louisbl/3912590 to your computer and use it in GitHub Desktop.
Save louisbl/3912590 to your computer and use it in GitHub Desktop.
hxcpp Set stack size of thread
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