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

It would be nice if QReadWriteLockPrivate uses volatile variable.

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Invalid
    • Icon: P4: Low P4: Low
    • None
    • 5.9.2
    • Core: Threads
    • None

      in QReadWriteLockPrivate class there are functions lockForRead()/lockForWrite() where, a while-loop waiting for changes on these variables without modifying them directly.

      It is possible that in future some compiler try to optimize that, so it would be nice if those variables are declared volatile.

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

            thiago Thiago Macieira
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes