http://llvm.org/bugs/show_bug.cgi?id=21395

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to