[PATCH] [libcxx] Fix bug in shared_timed_mutex that could cause a program to hang.

Eric Fiselier eric at efcs.ca
Wed Apr 1 21:50:03 PDT 2015


Change notify_one() to notify_all(), using notify_one() can still cause deadlock. Also modify test so it would have caught that bug.


http://reviews.llvm.org/D8796

Files:
  include/shared_mutex
  test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_until_deadlock_bug.pass.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8796.23118.patch
Type: text/x-patch
Size: 3685 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150402/8ce886fc/attachment.bin>


More information about the cfe-commits mailing list