diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-08-30 19:14:33 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-08-30 19:14:33 +0000 |
commit | aad745a024a3d0fd573ac9649d4c659e6a713702 (patch) | |
tree | 4202c4d244881948d97301997eaefdc04a26fbf8 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b7188a2d008f87d0880997fbfedf6e932734d6df (diff) | |
download | bcm5719-llvm-aad745a024a3d0fd573ac9649d4c659e6a713702.tar.gz bcm5719-llvm-aad745a024a3d0fd573ac9649d4c659e6a713702.zip |
Change sleep_for, sleep_until, and the condition_variable timed wait
functions to protect against duration and time_point overflow. Since
we're about to wait anyway, we can afford to spend a few more cycles on
this checking. I purposefully did not treat the timed try_locks with
overflow checking. This fixes
http://llvm.org/bugs/show_bug.cgi?id=13721 . I'm unsure if the standard
needs clarification in this area, or if this is simply QOI. The
<chrono> facilities were never intended to overflow check, but just to
not overflow if durations stayed within +/- 292 years.
llvm-svn: 162925
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions