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

QStandardPaths is not thread-safe on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.3
    • Core: I/O
    • None
    • Android

    Description

      The Android implementation of QStandardPaths uses QMap cache, which it accesses without synchronization. This means that different threads accessing, say, writableLocation() concurrently, produce a data race.

      Now, QStandardPaths isn't documented to be thread-safe, but there's nothing in the API that would prevent it from being thread-safe.

       

      Attachments

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

        Activity

          People

            villevoutilainen_qt Ville Voutilainen
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes