From Jason Turner

[thread.lock.shared.mod]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmplvnw7jnh/{from.md → to.md} +23 -0
tmp/tmplvnw7jnh/{from.md → to.md} RENAMED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##### `shared_lock` modifiers <a id="thread.lock.shared.mod">[[thread.lock.shared.mod]]</a>
2
+
3
+ ``` cpp
4
+ void swap(shared_lock& sl) noexcept;
5
+ ```
6
+
7
+ *Effects:* Swaps the data members of `*this` and `sl`.
8
+
9
+ ``` cpp
10
+ mutex_type* release() noexcept;
11
+ ```
12
+
13
+ *Returns:* The previous value of `pm`.
14
+
15
+ *Postconditions:* `pm == nullptr` and `owns == false`.
16
+
17
+ ``` cpp
18
+ template <class Mutex>
19
+ void swap(shared_lock<Mutex>& x, shared_lock<Mutex>& y) noexcept;
20
+ ```
21
+
22
+ *Effects:* `x.swap(y)`.
23
+