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

Add read/write locking to QSharedMemory

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • 4.7.1
    • Core: Threads
    • None
    • Maemo 6

    Description

      Locking QSharedMemory can be a heavy operation (on some Qt based Linux devices, it might lock the entire device).

      A read/write lock for QSharedMemory would greatly help. For many caches, the reads are very common and writes very rare, so locking would be minimized.

      Proposed API extension (based on QReadWriteLock):

      QSharedMemory::lockForWrite
      QSharedMemory::lockForRead

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            fernenge Harald Fernengel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes