commit | f32274891bc1b8142fc6ee6de9152c3548784629 | [log] [tgz] |
---|---|---|
author | Joerg Sonnenberger <joerg@bec.de> | Thu Feb 18 15:15:53 2021 +0100 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Apr 12 11:27:20 2021 -0700 |
tree | 5e6f26812fba0c47a11f1d8a24d807c5b84e4afb | |
parent | 4b2a43116754ae16c6e03235cbbc1506d5beb596 [diff] |
[libc++] Avoid <climits> dependency in <thread> The standard guarantees sleep durations of 2^63-1 nanoseconds to work. Instead of depending on INT64_MAX or ULONGLONG_MAX to exist via the header pollution, fold the constant directly. That has the additional positive side effect that it avoids long double arithmetic bugs in GCC. Differential Revision: https://reviews.llvm.org/D99516 GitOrigin-RevId: 9f4022ffeb20eff91c7461828592dc812ee5a28e