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