Current Path: > > usr > include > c++ > 8
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
backward | Directory | - | - | |
bits | Directory | - | - | |
debug | Directory | - | - | |
decimal | Directory | - | - | |
experimental | Directory | - | - | |
ext | Directory | - | - | |
parallel | Directory | - | - | |
profile | Directory | - | - | |
tr1 | Directory | - | - | |
tr2 | Directory | - | - | |
x86_64-redhat-linux | Directory | - | - | |
algorithm | File | 2518 bytes | March 31 2025 10:36:18. | |
any | File | 18604 bytes | March 31 2025 10:36:18. | |
array | File | 11657 bytes | March 31 2025 10:36:18. | |
atomic | File | 41057 bytes | March 31 2025 10:36:18. | |
bitset | File | 45910 bytes | March 31 2025 10:36:18. | |
cassert | File | 1648 bytes | March 31 2025 10:36:18. | |
ccomplex | File | 1335 bytes | March 31 2025 10:36:18. | |
cctype | File | 2409 bytes | March 31 2025 10:36:18. | |
cerrno | File | 1770 bytes | March 31 2025 10:36:18. | |
cfenv | File | 2051 bytes | March 31 2025 10:36:18. | |
cfloat | File | 1889 bytes | March 31 2025 10:36:18. | |
charconv | File | 16708 bytes | March 31 2025 10:36:18. | |
chrono | File | 29874 bytes | March 31 2025 10:36:18. | |
cinttypes | File | 2157 bytes | March 31 2025 10:36:18. | |
ciso646 | File | 1464 bytes | March 31 2025 10:36:18. | |
climits | File | 1913 bytes | March 31 2025 10:36:18. | |
clocale | File | 1905 bytes | March 31 2025 10:36:18. | |
cmath | File | 48142 bytes | March 31 2025 10:36:18. | |
codecvt | File | 5341 bytes | March 31 2025 10:36:18. | |
complex | File | 54537 bytes | March 31 2025 10:36:18. | |
complex.h | File | 1596 bytes | March 31 2025 10:36:18. | |
condition_variable | File | 8954 bytes | March 31 2025 10:36:18. | |
csetjmp | File | 1949 bytes | March 31 2025 10:36:18. | |
csignal | File | 1855 bytes | March 31 2025 10:36:18. | |
cstdalign | File | 1407 bytes | March 31 2025 10:36:18. | |
cstdarg | File | 1868 bytes | March 31 2025 10:36:18. | |
cstdbool | File | 1401 bytes | March 31 2025 10:36:18. | |
cstddef | File | 6440 bytes | March 31 2025 10:36:18. | |
cstdint | File | 2167 bytes | March 31 2025 10:36:18. | |
cstdio | File | 4439 bytes | March 31 2025 10:36:18. | |
cstdlib | File | 6325 bytes | March 31 2025 10:36:18. | |
cstring | File | 3123 bytes | March 31 2025 10:36:18. | |
ctgmath | File | 1360 bytes | March 31 2025 10:36:18. | |
ctime | File | 2125 bytes | March 31 2025 10:36:18. | |
cuchar | File | 2210 bytes | March 31 2025 10:36:18. | |
cwchar | File | 6509 bytes | March 31 2025 10:36:18. | |
cwctype | File | 2793 bytes | March 31 2025 10:36:18. | |
cxxabi.h | File | 21977 bytes | March 31 2025 10:36:18. | |
deque | File | 2665 bytes | March 31 2025 10:36:18. | |
exception | File | 4803 bytes | March 31 2025 10:36:18. | |
fenv.h | File | 2020 bytes | March 31 2025 10:36:18. | |
filesystem | File | 1438 bytes | March 31 2025 10:36:18. | |
forward_list | File | 1577 bytes | March 31 2025 10:36:18. | |
fstream | File | 36787 bytes | March 31 2025 10:36:18. | |
functional | File | 37750 bytes | March 31 2025 10:36:18. | |
future | File | 50678 bytes | March 31 2025 10:36:18. | |
initializer_list | File | 2974 bytes | March 31 2025 10:36:18. | |
iomanip | File | 16547 bytes | March 31 2025 10:36:18. | |
ios | File | 1601 bytes | March 31 2025 10:36:18. | |
iosfwd | File | 6918 bytes | March 31 2025 10:36:18. | |
iostream | File | 2695 bytes | March 31 2025 10:36:18. | |
istream | File | 32843 bytes | March 31 2025 10:36:18. | |
iterator | File | 2644 bytes | March 31 2025 10:36:18. | |
limits | File | 69181 bytes | March 31 2025 10:36:18. | |
list | File | 2594 bytes | March 31 2025 10:36:18. | |
locale | File | 1488 bytes | March 31 2025 10:36:18. | |
map | File | 2559 bytes | March 31 2025 10:36:18. | |
math.h | File | 4367 bytes | March 31 2025 10:36:18. | |
memory | File | 4711 bytes | March 31 2025 10:36:18. | |
mutex | File | 18224 bytes | March 31 2025 10:36:18. | |
new | File | 7521 bytes | March 31 2025 10:36:18. | |
numeric | File | 5444 bytes | March 31 2025 10:36:18. | |
optional | File | 43963 bytes | March 31 2025 10:36:18. | |
ostream | File | 22091 bytes | March 31 2025 10:36:18. | |
queue | File | 2467 bytes | March 31 2025 10:36:18. | |
random | File | 1692 bytes | March 31 2025 10:36:18. | |
ratio | File | 19886 bytes | March 31 2025 10:36:18. | |
regex | File | 1894 bytes | March 31 2025 10:36:18. | |
scoped_allocator | File | 16221 bytes | March 31 2025 10:36:18. | |
set | File | 2559 bytes | March 31 2025 10:36:18. | |
shared_mutex | File | 19409 bytes | March 31 2025 10:36:18. | |
sstream | File | 26871 bytes | March 31 2025 10:36:18. | |
stack | File | 2391 bytes | March 31 2025 10:36:18. | |
stdexcept | File | 7975 bytes | March 31 2025 10:36:18. | |
stdlib.h | File | 2248 bytes | March 31 2025 10:36:18. | |
streambuf | File | 30017 bytes | March 31 2025 10:36:18. | |
string | File | 1940 bytes | March 31 2025 10:36:18. | |
string_view | File | 20791 bytes | March 31 2025 10:36:18. | |
system_error | File | 11522 bytes | March 31 2025 10:36:18. | |
tgmath.h | File | 1360 bytes | March 31 2025 10:36:18. | |
thread | File | 10519 bytes | March 31 2025 10:36:18. | |
tuple | File | 60350 bytes | March 31 2025 10:36:18. | |
type_traits | File | 85871 bytes | March 31 2025 10:36:18. | |
typeindex | File | 3093 bytes | March 31 2025 10:36:18. | |
typeinfo | File | 7692 bytes | March 31 2025 10:36:18. | |
unordered_map | File | 1848 bytes | March 31 2025 10:36:18. | |
unordered_set | File | 1847 bytes | March 31 2025 10:36:18. | |
utility | File | 12303 bytes | March 31 2025 10:36:18. | |
valarray | File | 40274 bytes | March 31 2025 10:36:18. | |
variant | File | 48242 bytes | March 31 2025 10:36:18. | |
vector | File | 2747 bytes | March 31 2025 10:36:18. |
// <condition_variable> -*- C++ -*- // Copyright (C) 2008-2018 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either version 3, or (at your option) // any later version. // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // Under Section 7 of GPL version 3, you are granted additional // permissions described in the GCC Runtime Library Exception, version // 3.1, as published by the Free Software Foundation. // You should have received a copy of the GNU General Public License and // a copy of the GCC Runtime Library Exception along with this program; // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // <http://www.gnu.org/licenses/>. /** @file include/condition_variable * This is a Standard C++ Library header. */ #ifndef _GLIBCXX_CONDITION_VARIABLE #define _GLIBCXX_CONDITION_VARIABLE 1 #pragma GCC system_header #if __cplusplus < 201103L # include <bits/c++0x_warning.h> #else #include <chrono> #include <bits/std_mutex.h> #include <ext/concurrence.h> #include <bits/alloc_traits.h> #include <bits/allocator.h> #include <bits/unique_ptr.h> #include <bits/shared_ptr.h> #include <bits/cxxabi_forced.h> #if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1) namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION /** * @defgroup condition_variables Condition Variables * @ingroup concurrency * * Classes for condition_variable support. * @{ */ /// cv_status enum class cv_status { no_timeout, timeout }; /// condition_variable class condition_variable { typedef chrono::system_clock __clock_t; typedef __gthread_cond_t __native_type; #ifdef __GTHREAD_COND_INIT __native_type _M_cond = __GTHREAD_COND_INIT; #else __native_type _M_cond; #endif public: typedef __native_type* native_handle_type; condition_variable() noexcept; ~condition_variable() noexcept; condition_variable(const condition_variable&) = delete; condition_variable& operator=(const condition_variable&) = delete; void notify_one() noexcept; void notify_all() noexcept; void wait(unique_lock<mutex>& __lock) noexcept; template<typename _Predicate> void wait(unique_lock<mutex>& __lock, _Predicate __p) { while (!__p()) wait(__lock); } template<typename _Duration> cv_status wait_until(unique_lock<mutex>& __lock, const chrono::time_point<__clock_t, _Duration>& __atime) { return __wait_until_impl(__lock, __atime); } template<typename _Clock, typename _Duration> cv_status wait_until(unique_lock<mutex>& __lock, const chrono::time_point<_Clock, _Duration>& __atime) { // DR 887 - Sync unknown clock to known clock. const typename _Clock::time_point __c_entry = _Clock::now(); const __clock_t::time_point __s_entry = __clock_t::now(); const auto __delta = __atime - __c_entry; const auto __s_atime = __s_entry + __delta; return __wait_until_impl(__lock, __s_atime); } template<typename _Clock, typename _Duration, typename _Predicate> bool wait_until(unique_lock<mutex>& __lock, const chrono::time_point<_Clock, _Duration>& __atime, _Predicate __p) { while (!__p()) if (wait_until(__lock, __atime) == cv_status::timeout) return __p(); return true; } template<typename _Rep, typename _Period> cv_status wait_for(unique_lock<mutex>& __lock, const chrono::duration<_Rep, _Period>& __rtime) { using __dur = typename __clock_t::duration; auto __reltime = chrono::duration_cast<__dur>(__rtime); if (__reltime < __rtime) ++__reltime; return wait_until(__lock, __clock_t::now() + __reltime); } template<typename _Rep, typename _Period, typename _Predicate> bool wait_for(unique_lock<mutex>& __lock, const chrono::duration<_Rep, _Period>& __rtime, _Predicate __p) { using __dur = typename __clock_t::duration; auto __reltime = chrono::duration_cast<__dur>(__rtime); if (__reltime < __rtime) ++__reltime; return wait_until(__lock, __clock_t::now() + __reltime, std::move(__p)); } native_handle_type native_handle() { return &_M_cond; } private: template<typename _Dur> cv_status __wait_until_impl(unique_lock<mutex>& __lock, const chrono::time_point<__clock_t, _Dur>& __atime) { auto __s = chrono::time_point_cast<chrono::seconds>(__atime); auto __ns = chrono::duration_cast<chrono::nanoseconds>(__atime - __s); __gthread_time_t __ts = { static_cast<std::time_t>(__s.time_since_epoch().count()), static_cast<long>(__ns.count()) }; __gthread_cond_timedwait(&_M_cond, __lock.mutex()->native_handle(), &__ts); return (__clock_t::now() < __atime ? cv_status::no_timeout : cv_status::timeout); } }; void notify_all_at_thread_exit(condition_variable&, unique_lock<mutex>); struct __at_thread_exit_elt { __at_thread_exit_elt* _M_next; void (*_M_cb)(void*); }; inline namespace _V2 { /// condition_variable_any // Like above, but mutex is not required to have try_lock. class condition_variable_any { typedef chrono::system_clock __clock_t; condition_variable _M_cond; shared_ptr<mutex> _M_mutex; // scoped unlock - unlocks in ctor, re-locks in dtor template<typename _Lock> struct _Unlock { explicit _Unlock(_Lock& __lk) : _M_lock(__lk) { __lk.unlock(); } ~_Unlock() noexcept(false) { if (uncaught_exception()) { __try { _M_lock.lock(); } __catch(const __cxxabiv1::__forced_unwind&) { __throw_exception_again; } __catch(...) { } } else _M_lock.lock(); } _Unlock(const _Unlock&) = delete; _Unlock& operator=(const _Unlock&) = delete; _Lock& _M_lock; }; public: condition_variable_any() : _M_mutex(std::make_shared<mutex>()) { } ~condition_variable_any() = default; condition_variable_any(const condition_variable_any&) = delete; condition_variable_any& operator=(const condition_variable_any&) = delete; void notify_one() noexcept { lock_guard<mutex> __lock(*_M_mutex); _M_cond.notify_one(); } void notify_all() noexcept { lock_guard<mutex> __lock(*_M_mutex); _M_cond.notify_all(); } template<typename _Lock> void wait(_Lock& __lock) { shared_ptr<mutex> __mutex = _M_mutex; unique_lock<mutex> __my_lock(*__mutex); _Unlock<_Lock> __unlock(__lock); // *__mutex must be unlocked before re-locking __lock so move // ownership of *__mutex lock to an object with shorter lifetime. unique_lock<mutex> __my_lock2(std::move(__my_lock)); _M_cond.wait(__my_lock2); } template<typename _Lock, typename _Predicate> void wait(_Lock& __lock, _Predicate __p) { while (!__p()) wait(__lock); } template<typename _Lock, typename _Clock, typename _Duration> cv_status wait_until(_Lock& __lock, const chrono::time_point<_Clock, _Duration>& __atime) { shared_ptr<mutex> __mutex = _M_mutex; unique_lock<mutex> __my_lock(*__mutex); _Unlock<_Lock> __unlock(__lock); // *__mutex must be unlocked before re-locking __lock so move // ownership of *__mutex lock to an object with shorter lifetime. unique_lock<mutex> __my_lock2(std::move(__my_lock)); return _M_cond.wait_until(__my_lock2, __atime); } template<typename _Lock, typename _Clock, typename _Duration, typename _Predicate> bool wait_until(_Lock& __lock, const chrono::time_point<_Clock, _Duration>& __atime, _Predicate __p) { while (!__p()) if (wait_until(__lock, __atime) == cv_status::timeout) return __p(); return true; } template<typename _Lock, typename _Rep, typename _Period> cv_status wait_for(_Lock& __lock, const chrono::duration<_Rep, _Period>& __rtime) { return wait_until(__lock, __clock_t::now() + __rtime); } template<typename _Lock, typename _Rep, typename _Period, typename _Predicate> bool wait_for(_Lock& __lock, const chrono::duration<_Rep, _Period>& __rtime, _Predicate __p) { return wait_until(__lock, __clock_t::now() + __rtime, std::move(__p)); } }; } // end inline namespace // @} group condition_variables _GLIBCXX_END_NAMESPACE_VERSION } // namespace #endif // _GLIBCXX_HAS_GTHREADS && _GLIBCXX_USE_C99_STDINT_TR1 #endif // C++11 #endif // _GLIBCXX_CONDITION_VARIABLE
SILENT KILLER Tool