c++ - Stack size in QThread -


what maximal default stack size when using qthread in qt5 , c++? have qvector in thread , calling myvector.append() method, , i`m interested how big vector can be. found uint qthread::stacksize() const method returns stack size, if changed method setstacksize(), default stack size?

the stack size plays role if compiling 32 bit application and you're allocating storage buffer explicitly on stack. using automatic qvector or std::vector instance doesn't allocate large buffers on stack - you'd need use custom allocator that.

iirc in 64 bit applications, memory laid out such won't ever run out of stack space reasonable number of threads.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -