[Interest] Default stack size of QThread

Thiago Macieira thiago.macieira at intel.com
Mon Aug 28 19:38:16 CEST 2023


On Monday, 28 August 2023 10:05:14 PDT Thiago Macieira wrote:
> If you really want this, then QThread doesn't enforce any limit. Please
> consult the documentation for the pthread_create() function on how how it
> determines the default stack size. For glibc, it uses the RLIMIT_STACK
> resource limit.

I meant, "by default". Yes you can change the stack size using 
QThread::setStackSize(), but the default of QThread is 0, so it's whatever the 
underlying implementation chooses.

Since you're using Yocto, if this really matters to you, just change the 
underlying implementation or Qt. But please answer the question on why you 
think you need this.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230828/b6bc10bc/attachment.bin>


More information about the Interest mailing list