[LLVMbugs] [Bug 21395] New: condition_variable::wait_until should call __do_timed_wait instead of wait_for

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 27 13:44:37 PDT 2014


            Bug ID: 21395
           Summary: condition_variable::wait_until should call
                    __do_timed_wait instead of wait_for
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: moorecr3 at gmail.com
                CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
    Classification: Unclassified

There is a race condition that may be triggered causing the thread to sleep
longer than desired.  It is triggered if the thread is preempted after
calculating "__t - _Clock::now()" (__mutex_hase:353) and before getting the
system_clock time in wait_for (__mutex_base:382).

Observed in revision 217271.

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/20141027/3b93f9c0/attachment.html>

More information about the llvm-bugs mailing list