From Jason Turner

[mutex.syn]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp9hbunt1r/{from.md → to.md} +34 -0
tmp/tmp9hbunt1r/{from.md → to.md} RENAMED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Header `<mutex>` synopsis <a id="mutex.syn">[[mutex.syn]]</a>
2
+
3
+ ``` cpp
4
+ namespace std {
5
+ class mutex;
6
+ class recursive_mutex;
7
+ class timed_mutex;
8
+ class recursive_timed_mutex;
9
+
10
+ struct defer_lock_t { explicit defer_lock_t() = default; };
11
+ struct try_to_lock_t { explicit try_to_lock_t() = default; };
12
+ struct adopt_lock_t { explicit adopt_lock_t() = default; };
13
+
14
+ inline constexpr defer_lock_t defer_lock { };
15
+ inline constexpr try_to_lock_t try_to_lock { };
16
+ inline constexpr adopt_lock_t adopt_lock { };
17
+
18
+ template <class Mutex> class lock_guard;
19
+ template <class... MutexTypes> class scoped_lock;
20
+ template <class Mutex> class unique_lock;
21
+
22
+ template <class Mutex>
23
+ void swap(unique_lock<Mutex>& x, unique_lock<Mutex>& y) noexcept;
24
+
25
+ template <class L1, class L2, class... L3> int try_lock(L1&, L2&, L3&...);
26
+ template <class L1, class L2, class... L3> void lock(L1&, L2&, L3&...);
27
+
28
+ struct once_flag;
29
+
30
+ template<class Callable, class... Args>
31
+ void call_once(once_flag& flag, Callable&& func, Args&&... args);
32
+ }
33
+ ```
34
+