Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-109512

Documentation of QThread::setStackSize() wrong (on Unix)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.15, 6.5
    • Core: I/O, Documentation
    • None
    • Android, Linux/Wayland, Linux/X11, Linux/Yocto, Linux/Other display system

    Description

      The doc states "Sets the maximum stack size for the thread to stackSize."

      However the implementation in qthread_unix.cpp uses

      pthread_attr_setstacksize()

      which describes this in the man page:

      "The stack size attribute determines the minimum size (in bytes)..."

      So: minimum, not maximum

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            mkoller Martin Koller
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes