[LLVMbugs] [Bug 23041] New: shared_lock bad test case

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 26 22:41:12 PDT 2015


            Bug ID: 23041
           Summary: shared_lock bad test case
           Product: libc++
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: terrelln at umich.edu
                CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
    Classification: Unclassified

Occurs in line 25 of

The adopt_lock constructor assumes that the lock is already held in shared
mode, but it is held in exclusive mode.

`m.lock_shared()` should be called, not `m.lock()`.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150327/474cde39/attachment.html>

More information about the llvm-bugs mailing list