232 pthread_t thread = pthread_self();
233 pthread_attr_t sattr;
234# if defined(PTHREAD_NP_H) || defined(_PTHREAD_NP_H_) || defined(Q_OS_NETBSD)
235 pthread_attr_init(&sattr);
236 pthread_attr_get_np(thread, &sattr);
238 pthread_getattr_np(thread, &sattr);
245 int rc = pthread_attr_getstack(&sattr, &stackBase, ®ionSize);
246 pthread_attr_destroy(&sattr);
249 qFatal(
"Cannot find stack base");
251# if Q_STACK_GROWTH_DIRECTION < 0
252 stackBase = decrementStackPointer(stackBase, regionSize);
255 return createStackProperties(stackBase, stackSize ? stackSize : regionSize);