https://llvm.org/bugs/show_bug.cgi?id=23041
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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Occurs in line 25 of
`/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_adopt_lock.pass.cpp`:
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs