• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/libpthread-105.1.4/src/

Lines Matching refs:stacksize

154 	size_t stacksize,
175 extern void thread_start(pthread_t self, mach_port_t kport, void *(*fun)(void *), void * funarg, size_t stacksize, unsigned int flags);
247 size_t stacksize = 0;
249 PTHREAD_ASSERT(attrs->stacksize >= PTHREAD_STACK_MIN);
262 stacksize = attrs->stacksize;
263 allocsize = stacksize + guardsize + pthreadsize;
295 t = (void *)(allocaddr + stacksize + guardsize);
296 if (stacksize) {
432 attr->stacksize = DEFAULT_STACK_SIZE;
553 pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize)
557 *stacksize = attr->stacksize;
564 pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
568 (stacksize % vm_page_size) == 0 &&
569 stacksize >= PTHREAD_STACK_MIN) {
570 attr->stacksize = stacksize;
577 pthread_attr_getstack(const pthread_attr_t *attr, void **stackaddr, size_t * stacksize)
581 *stackaddr = (void *)((uintptr_t)attr->stackaddr - attr->stacksize);
582 *stacksize = attr->stacksize;
591 pthread_attr_setstack(pthread_attr_t *attr, void *stackaddr, size_t stacksize)
596 (stacksize % vm_page_size) == 0 &&
597 stacksize >= PTHREAD_STACK_MIN) {
598 attr->stackaddr = (void *)((uintptr_t)stackaddr + stacksize);
599 attr->stacksize = stacksize;
646 _pthread_start(pthread_t self, mach_port_t kport, void *(*fun)(void *), void *arg, size_t stacksize, unsigned int pflags)
650 _pthread_struct_init(self, &_pthread_attr_default, stackaddr, stacksize, 1);
685 size_t stacksize,
695 t->stacksize = stacksize;
697 t->freeaddr = (void *)(uintptr_t)(stackaddr - stacksize - vm_page_size);
698 t->freesize = pthreadsize + stacksize + vm_page_size;
700 t->stacksize = attrs->stacksize;
780 return t->stacksize;
787 size = t->stacksize;
1092 // kernel will allocate thread and stack, pass stacksize.
1093 stack = (void *)attrs->stacksize;
1592 size_t stacksize = DFLSSIZ;
1601 _pthread_struct_init(thread, &_pthread_attr_default, stackaddr, stacksize, 0);
2114 freesize = t->stacksize + t->guardsize;