254 pthread_t thread = pthread_self();
255 pthread_attr_t sattr;
256# if defined(PTHREAD_NP_H) || defined(_PTHREAD_NP_H_) || defined(Q_OS_NETBSD)
257 pthread_attr_init(&sattr);
258 pthread_attr_get_np(thread, &sattr);
260 pthread_getattr_np(thread, &sattr);
267 int rc = pthread_attr_getstack(&sattr, &stackBase, ®ionSize);
268 pthread_attr_destroy(&sattr);
271 qFatal(
"Cannot find stack base");
273# if Q_STACK_GROWTH_DIRECTION < 0
274 stackBase = decrementStackPointer(stackBase, regionSize);
277 return createStackProperties(stackBase, stackSize ? stackSize : regionSize);