Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
include /
c++ /
12 /
bits /
Delete
Unzip
Name
Size
Permission
Date
Action
algorithmfwd.h
23.97
KB
-rw-r--r--
2023-01-08 09:12
align.h
3.62
KB
-rw-r--r--
2023-01-08 09:12
alloc_traits.h
27.03
KB
-rw-r--r--
2023-01-08 09:12
allocated_ptr.h
3.25
KB
-rw-r--r--
2023-01-08 09:12
allocator.h
9.55
KB
-rw-r--r--
2023-01-08 09:12
atomic_base.h
56.73
KB
-rw-r--r--
2023-01-08 09:12
atomic_futex.h
12.08
KB
-rw-r--r--
2023-01-08 09:12
atomic_lockfree_defines.h
2.3
KB
-rw-r--r--
2023-01-08 09:12
atomic_timed_wait.h
13.18
KB
-rw-r--r--
2023-01-08 09:12
atomic_wait.h
12.2
KB
-rw-r--r--
2023-01-08 09:12
basic_ios.h
15.7
KB
-rw-r--r--
2023-01-08 09:12
basic_ios.tcc
5.96
KB
-rw-r--r--
2023-01-08 09:12
basic_string.h
149.19
KB
-rw-r--r--
2023-01-08 09:12
basic_string.tcc
33.76
KB
-rw-r--r--
2023-01-08 09:12
boost_concept_check.h
29.13
KB
-rw-r--r--
2023-01-08 09:12
c++0x_warning.h
1.44
KB
-rw-r--r--
2023-01-08 09:12
char_traits.h
28.54
KB
-rw-r--r--
2023-01-08 09:12
charconv.h
3.35
KB
-rw-r--r--
2023-01-08 09:12
chrono.h
41.53
KB
-rw-r--r--
2023-01-08 09:12
codecvt.h
24.9
KB
-rw-r--r--
2023-01-08 09:12
concept_check.h
3.34
KB
-rw-r--r--
2023-01-08 09:12
cow_string.h
129.11
KB
-rw-r--r--
2023-01-08 09:12
cpp_type_traits.h
13.72
KB
-rw-r--r--
2023-01-08 09:12
cxxabi_forced.h
1.77
KB
-rw-r--r--
2023-01-08 09:12
cxxabi_init_exception.h
2.17
KB
-rw-r--r--
2023-01-08 09:12
deque.tcc
41.38
KB
-rw-r--r--
2023-01-08 09:12
enable_special_members.h
12.16
KB
-rw-r--r--
2023-01-08 09:12
erase_if.h
2.09
KB
-rw-r--r--
2023-01-08 09:12
exception.h
2.45
KB
-rw-r--r--
2023-01-08 09:12
exception_defines.h
1.61
KB
-rw-r--r--
2023-01-08 09:12
exception_ptr.h
7.73
KB
-rw-r--r--
2023-01-08 09:12
forward_list.h
49.87
KB
-rw-r--r--
2023-01-08 09:12
forward_list.tcc
13.71
KB
-rw-r--r--
2023-01-08 09:12
fs_dir.h
16.23
KB
-rw-r--r--
2023-01-08 09:12
fs_fwd.h
10.66
KB
-rw-r--r--
2023-01-08 09:12
fs_ops.h
10.49
KB
-rw-r--r--
2023-01-08 09:12
fs_path.h
40.57
KB
-rw-r--r--
2023-01-08 09:12
fstream.tcc
32.88
KB
-rw-r--r--
2023-01-08 09:12
functexcept.h
3.43
KB
-rw-r--r--
2023-01-08 09:12
functional_hash.h
8.51
KB
-rw-r--r--
2023-01-08 09:12
gslice.h
5.39
KB
-rw-r--r--
2023-01-08 09:12
gslice_array.h
7.67
KB
-rw-r--r--
2023-01-08 09:12
hash_bytes.h
2.1
KB
-rw-r--r--
2023-01-08 09:12
hashtable.h
87.83
KB
-rw-r--r--
2023-01-08 09:12
hashtable_policy.h
63.21
KB
-rw-r--r--
2023-01-08 09:12
indirect_array.h
7.68
KB
-rw-r--r--
2023-01-08 09:12
invoke.h
5.92
KB
-rw-r--r--
2023-01-08 09:12
ios_base.h
31.43
KB
-rw-r--r--
2023-01-08 09:12
istream.tcc
31.38
KB
-rw-r--r--
2023-01-08 09:12
iterator_concepts.h
32.61
KB
-rw-r--r--
2023-01-08 09:12
list.tcc
17.62
KB
-rw-r--r--
2023-01-08 09:12
locale_classes.h
24.46
KB
-rw-r--r--
2023-01-08 09:12
locale_classes.tcc
8.18
KB
-rw-r--r--
2023-01-08 09:12
locale_conv.h
18.74
KB
-rw-r--r--
2023-01-08 09:12
locale_facets.h
91.72
KB
-rw-r--r--
2023-01-08 09:12
locale_facets.tcc
39.51
KB
-rw-r--r--
2023-01-08 09:12
locale_facets_nonio.h
69.1
KB
-rw-r--r--
2023-01-08 09:12
locale_facets_nonio.tcc
53.76
KB
-rw-r--r--
2023-01-08 09:12
localefwd.h
5.8
KB
-rw-r--r--
2023-01-08 09:12
mask_array.h
7.5
KB
-rw-r--r--
2023-01-08 09:12
max_size_type.h
21.96
KB
-rw-r--r--
2023-01-08 09:12
memoryfwd.h
2.45
KB
-rw-r--r--
2023-01-08 09:12
mofunc_impl.h
7.52
KB
-rw-r--r--
2023-01-08 09:12
move.h
6.63
KB
-rw-r--r--
2023-01-08 09:12
move_only_function.h
5.73
KB
-rw-r--r--
2023-01-08 09:12
nested_exception.h
4.77
KB
-rw-r--r--
2023-01-08 09:12
new_allocator.h
6.47
KB
-rw-r--r--
2023-01-08 09:12
node_handle.h
10.67
KB
-rw-r--r--
2023-01-08 09:12
ostream.tcc
11.69
KB
-rw-r--r--
2023-01-08 09:12
ostream_insert.h
3.94
KB
-rw-r--r--
2023-01-08 09:12
parse_numbers.h
7.8
KB
-rw-r--r--
2023-01-08 09:12
postypes.h
7.33
KB
-rw-r--r--
2023-01-08 09:12
predefined_ops.h
9.94
KB
-rw-r--r--
2023-01-08 09:12
ptr_traits.h
8.88
KB
-rw-r--r--
2023-01-08 09:12
quoted_string.h
4.93
KB
-rw-r--r--
2023-01-08 09:12
random.h
174.24
KB
-rw-r--r--
2023-01-08 09:12
random.tcc
103.38
KB
-rw-r--r--
2023-01-08 09:12
range_access.h
10.97
KB
-rw-r--r--
2023-01-08 09:12
ranges_algo.h
114.1
KB
-rw-r--r--
2023-01-08 09:12
ranges_algobase.h
18.4
KB
-rw-r--r--
2023-01-08 09:12
ranges_base.h
25.61
KB
-rw-r--r--
2023-01-08 09:12
ranges_cmp.h
5.83
KB
-rw-r--r--
2023-01-08 09:12
ranges_uninitialized.h
17.71
KB
-rw-r--r--
2023-01-08 09:12
ranges_util.h
21.3
KB
-rw-r--r--
2023-01-08 09:12
refwrap.h
13.21
KB
-rw-r--r--
2023-01-08 09:12
regex.h
101.77
KB
-rw-r--r--
2023-01-08 09:12
regex.tcc
16.13
KB
-rw-r--r--
2023-01-08 09:12
regex_automaton.h
10.54
KB
-rw-r--r--
2023-01-08 09:12
regex_automaton.tcc
7.58
KB
-rw-r--r--
2023-01-08 09:12
regex_compiler.h
15.92
KB
-rw-r--r--
2023-01-08 09:12
regex_compiler.tcc
18.38
KB
-rw-r--r--
2023-01-08 09:12
regex_constants.h
14.51
KB
-rw-r--r--
2023-01-08 09:12
regex_error.h
5.03
KB
-rw-r--r--
2023-01-08 09:12
regex_executor.h
8.8
KB
-rw-r--r--
2023-01-08 09:12
regex_executor.tcc
18.41
KB
-rw-r--r--
2023-01-08 09:12
regex_scanner.h
6.88
KB
-rw-r--r--
2023-01-08 09:12
regex_scanner.tcc
14.54
KB
-rw-r--r--
2023-01-08 09:12
semaphore_base.h
7.7
KB
-rw-r--r--
2023-01-08 09:12
shared_ptr.h
38.14
KB
-rw-r--r--
2023-01-08 09:12
shared_ptr_atomic.h
20.7
KB
-rw-r--r--
2023-01-08 09:12
shared_ptr_base.h
65.23
KB
-rw-r--r--
2023-01-08 09:12
slice_array.h
9.35
KB
-rw-r--r--
2023-01-08 09:12
specfun.h
46.13
KB
-rw-r--r--
2023-01-08 09:12
sstream.tcc
9.91
KB
-rw-r--r--
2023-01-08 09:12
std_abs.h
3.37
KB
-rw-r--r--
2023-01-08 09:12
std_function.h
22.34
KB
-rw-r--r--
2023-01-08 09:12
std_mutex.h
6.27
KB
-rw-r--r--
2023-01-08 09:12
std_thread.h
8.24
KB
-rw-r--r--
2023-01-08 09:12
stl_algo.h
210.67
KB
-rw-r--r--
2023-01-08 09:12
stl_algobase.h
75.01
KB
-rw-r--r--
2023-01-08 09:12
stl_bvector.h
40.27
KB
-rw-r--r--
2023-01-08 09:12
stl_construct.h
8.46
KB
-rw-r--r--
2023-01-08 09:12
stl_deque.h
76.34
KB
-rw-r--r--
2023-01-08 09:12
stl_function.h
43.97
KB
-rw-r--r--
2023-01-08 09:12
stl_heap.h
20.31
KB
-rw-r--r--
2023-01-08 09:12
stl_iterator.h
79.65
KB
-rw-r--r--
2023-01-08 09:12
stl_iterator_base_funcs.h
8.57
KB
-rw-r--r--
2023-01-08 09:12
stl_iterator_base_types.h
9.46
KB
-rw-r--r--
2023-01-08 09:12
stl_list.h
70.68
KB
-rw-r--r--
2023-01-08 09:12
stl_map.h
54.8
KB
-rw-r--r--
2023-01-08 09:12
stl_multimap.h
42.67
KB
-rw-r--r--
2023-01-08 09:12
stl_multiset.h
36.84
KB
-rw-r--r--
2023-01-08 09:12
stl_numeric.h
14.26
KB
-rw-r--r--
2023-01-08 09:12
stl_pair.h
29.41
KB
-rw-r--r--
2023-01-08 09:12
stl_queue.h
28.06
KB
-rw-r--r--
2023-01-08 09:12
stl_raw_storage_iter.h
3.91
KB
-rw-r--r--
2023-01-08 09:12
stl_relops.h
4.47
KB
-rw-r--r--
2023-01-08 09:12
stl_set.h
37.09
KB
-rw-r--r--
2023-01-08 09:12
stl_stack.h
13.71
KB
-rw-r--r--
2023-01-08 09:12
stl_tempbuf.h
8.48
KB
-rw-r--r--
2023-01-08 09:12
stl_tree.h
72.04
KB
-rw-r--r--
2023-01-08 09:12
stl_uninitialized.h
35.32
KB
-rw-r--r--
2023-01-08 09:12
stl_vector.h
68.73
KB
-rw-r--r--
2023-01-08 09:12
stream_iterator.h
8.09
KB
-rw-r--r--
2023-01-08 09:12
streambuf.tcc
4.58
KB
-rw-r--r--
2023-01-08 09:12
streambuf_iterator.h
15.53
KB
-rw-r--r--
2023-01-08 09:12
string_view.tcc
7
KB
-rw-r--r--
2023-01-08 09:12
stringfwd.h
2.56
KB
-rw-r--r--
2023-01-08 09:12
this_thread_sleep.h
3.21
KB
-rw-r--r--
2023-01-08 09:12
uniform_int_dist.h
12.77
KB
-rw-r--r--
2023-01-08 09:12
unique_lock.h
6.01
KB
-rw-r--r--
2023-01-08 09:12
unique_ptr.h
35.54
KB
-rw-r--r--
2023-01-08 09:12
unordered_map.h
74.87
KB
-rw-r--r--
2023-01-08 09:12
unordered_set.h
61.46
KB
-rw-r--r--
2023-01-08 09:12
uses_allocator.h
6.74
KB
-rw-r--r--
2023-01-08 09:12
uses_allocator_args.h
6.96
KB
-rw-r--r--
2023-01-08 09:12
utility.h
8.12
KB
-rw-r--r--
2023-01-08 09:12
valarray_after.h
22.74
KB
-rw-r--r--
2023-01-08 09:12
valarray_array.h
20.8
KB
-rw-r--r--
2023-01-08 09:12
valarray_array.tcc
7.08
KB
-rw-r--r--
2023-01-08 09:12
valarray_before.h
18.69
KB
-rw-r--r--
2023-01-08 09:12
vector.tcc
30.82
KB
-rw-r--r--
2023-01-08 09:12
Save
Rename
// std::mutex implementation -*- C++ -*- // Copyright (C) 2003-2022 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 bits/std_mutex.h * This is an internal header file, included by other library headers. * Do not attempt to use it directly. @headername{mutex} */ #ifndef _GLIBCXX_MUTEX_H #define _GLIBCXX_MUTEX_H 1 #pragma GCC system_header #if __cplusplus < 201103L # include <bits/c++0x_warning.h> #else #include <system_error> #include <bits/functexcept.h> #include <bits/gthr.h> namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION /** * @defgroup mutexes Mutexes * @ingroup concurrency * * Classes for mutex support. * @{ */ #ifdef _GLIBCXX_HAS_GTHREADS // Common base class for std::mutex and std::timed_mutex class __mutex_base { protected: typedef __gthread_mutex_t __native_type; #ifdef __GTHREAD_MUTEX_INIT __native_type _M_mutex = __GTHREAD_MUTEX_INIT; constexpr __mutex_base() noexcept = default; #else __native_type _M_mutex; __mutex_base() noexcept { // XXX EAGAIN, ENOMEM, EPERM, EBUSY(may), EINVAL(may) __GTHREAD_MUTEX_INIT_FUNCTION(&_M_mutex); } ~__mutex_base() noexcept { __gthread_mutex_destroy(&_M_mutex); } #endif __mutex_base(const __mutex_base&) = delete; __mutex_base& operator=(const __mutex_base&) = delete; }; /// The standard mutex type. class mutex : private __mutex_base { public: typedef __native_type* native_handle_type; #ifdef __GTHREAD_MUTEX_INIT constexpr #endif mutex() noexcept = default; ~mutex() = default; mutex(const mutex&) = delete; mutex& operator=(const mutex&) = delete; void lock() { int __e = __gthread_mutex_lock(&_M_mutex); // EINVAL, EAGAIN, EBUSY, EINVAL, EDEADLK(may) if (__e) __throw_system_error(__e); } bool try_lock() noexcept { // XXX EINVAL, EAGAIN, EBUSY return !__gthread_mutex_trylock(&_M_mutex); } void unlock() { // XXX EINVAL, EAGAIN, EPERM __gthread_mutex_unlock(&_M_mutex); } native_handle_type native_handle() noexcept { return &_M_mutex; } }; // Implementation details for std::condition_variable class __condvar { using timespec = __gthread_time_t; public: __condvar() noexcept { #ifndef __GTHREAD_COND_INIT __GTHREAD_COND_INIT_FUNCTION(&_M_cond); #endif } ~__condvar() { int __e __attribute__((__unused__)) = __gthread_cond_destroy(&_M_cond); __glibcxx_assert(__e != EBUSY); // threads are still blocked } __condvar(const __condvar&) = delete; __condvar& operator=(const __condvar&) = delete; __gthread_cond_t* native_handle() noexcept { return &_M_cond; } // Expects: Calling thread has locked __m. void wait(mutex& __m) { int __e __attribute__((__unused__)) = __gthread_cond_wait(&_M_cond, __m.native_handle()); __glibcxx_assert(__e == 0); } void wait_until(mutex& __m, timespec& __abs_time) { __gthread_cond_timedwait(&_M_cond, __m.native_handle(), &__abs_time); } #ifdef _GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT void wait_until(mutex& __m, clockid_t __clock, timespec& __abs_time) { pthread_cond_clockwait(&_M_cond, __m.native_handle(), __clock, &__abs_time); } #endif void notify_one() noexcept { int __e __attribute__((__unused__)) = __gthread_cond_signal(&_M_cond); __glibcxx_assert(__e == 0); } void notify_all() noexcept { int __e __attribute__((__unused__)) = __gthread_cond_broadcast(&_M_cond); __glibcxx_assert(__e == 0); } protected: #ifdef __GTHREAD_COND_INIT __gthread_cond_t _M_cond = __GTHREAD_COND_INIT; #else __gthread_cond_t _M_cond; #endif }; #endif // _GLIBCXX_HAS_GTHREADS /// Do not acquire ownership of the mutex. struct defer_lock_t { explicit defer_lock_t() = default; }; /// Try to acquire ownership of the mutex without blocking. struct try_to_lock_t { explicit try_to_lock_t() = default; }; /// Assume the calling thread has already obtained mutex ownership /// and manage it. struct adopt_lock_t { explicit adopt_lock_t() = default; }; /// Tag used to prevent a scoped lock from acquiring ownership of a mutex. _GLIBCXX17_INLINE constexpr defer_lock_t defer_lock { }; /// Tag used to prevent a scoped lock from blocking if a mutex is locked. _GLIBCXX17_INLINE constexpr try_to_lock_t try_to_lock { }; /// Tag used to make a scoped lock take ownership of a locked mutex. _GLIBCXX17_INLINE constexpr adopt_lock_t adopt_lock { }; /** @brief A simple scoped lock type. * * A lock_guard controls mutex ownership within a scope, releasing * ownership in the destructor. */ template<typename _Mutex> class lock_guard { public: typedef _Mutex mutex_type; explicit lock_guard(mutex_type& __m) : _M_device(__m) { _M_device.lock(); } lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m) { } // calling thread owns mutex ~lock_guard() { _M_device.unlock(); } lock_guard(const lock_guard&) = delete; lock_guard& operator=(const lock_guard&) = delete; private: mutex_type& _M_device; }; /// @} group mutexes _GLIBCXX_END_NAMESPACE_VERSION } // namespace #endif // C++11 #endif // _GLIBCXX_MUTEX_H