aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/condition_variable
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-10-07 14:51:18 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-10-07 21:12:32 +0100
commit7f78718b7958f603d50d5c30fd8735d73900bd1f (patch)
tree2f0b4779e0a91a3010c85a0e59d37bb510528e08 /libstdc++-v3/include/std/condition_variable
parent1848fbf0546abe2a7443e25a418eff7895a2ebb5 (diff)
downloadgcc-7f78718b7958f603d50d5c30fd8735d73900bd1f.zip
gcc-7f78718b7958f603d50d5c30fd8735d73900bd1f.tar.gz
gcc-7f78718b7958f603d50d5c30fd8735d73900bd1f.tar.bz2
libstdc++: Move C++14 <chrono> components to new <bits/chrono.h> header
This moves the "classic" contents of <chrono> to a new header, so that <future>, <thread> etc. can get use durations and clocks without calendar types, time zones, and chrono I/O. libstdc++-v3/ChangeLog: * include/Makefile.am: Add new header. * include/Makefile.in: Regenerate. * include/std/chrono (duration, time_point, system_clock) (steady_clock, high_resolution_clock, chrono_literals, sys_time) (file_clock, file_time): Move to ... * include/bits/chrono.h: New file. * include/bits/atomic_futex.h: Include new header instead of <chrono>. * include/bits/atomic_timed_wait.h: Likewise. * include/bits/fs_fwd.h: Likewise. * include/bits/semaphore_base.h: Likewise. * include/bits/this_thread_sleep.h: Likewise. * include/bits/unique_lock.h: Likewise. * include/experimental/bits/fs_fwd.h: Likewise. * include/experimental/chrono: Likewise. * include/experimental/io_context: Likewise. * include/experimental/netfwd: Likewise. * include/experimental/timer: Likewise. * include/std/condition_variable: Likewise. * include/std/mutex: Likewise. * include/std/shared_mutex: Likewise.
Diffstat (limited to 'libstdc++-v3/include/std/condition_variable')
-rw-r--r--libstdc++-v3/include/std/condition_variable3
1 files changed, 1 insertions, 2 deletions
diff --git a/libstdc++-v3/include/std/condition_variable b/libstdc++-v3/include/std/condition_variable
index fb9b7d3..4fcec6a 100644
--- a/libstdc++-v3/include/std/condition_variable
+++ b/libstdc++-v3/include/std/condition_variable
@@ -35,8 +35,7 @@
# include <bits/c++0x_warning.h>
#else
-#include <chrono>
-
+#include <bits/chrono.h>
#include <bits/std_mutex.h>
#include <bits/unique_lock.h>
#include <bits/alloc_traits.h>