tmp/tmpsx91gv2t/{from.md → to.md}
RENAMED
|
@@ -16,11 +16,11 @@ namespace std {
|
|
| 16 |
bool try_lock_for(const chrono::duration<Rep, Period>& rel_time);
|
| 17 |
template <class Clock, class Duration>
|
| 18 |
bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
|
| 19 |
void unlock();
|
| 20 |
|
| 21 |
-
|
| 22 |
native_handle_type native_handle(); // See~[thread.req.native]
|
| 23 |
};
|
| 24 |
}
|
| 25 |
```
|
| 26 |
|
|
@@ -30,11 +30,11 @@ exclusive ownership semantics. If one thread owns a
|
|
| 30 |
ownership of that object will fail (for `try_lock()`) or block (for
|
| 31 |
`lock()`, `try_lock_for()`, and `try_lock_until()`) until the owning
|
| 32 |
thread has completely released ownership or the call to `try_lock_for()`
|
| 33 |
or `try_lock_until()` times out (having failed to obtain ownership).
|
| 34 |
|
| 35 |
-
The class `recursive_timed_mutex` shall satisfy all of the
|
| 36 |
requirements ([[thread.timedmutex.requirements]]). It shall be a
|
| 37 |
standard-layout class (Clause [[class]]).
|
| 38 |
|
| 39 |
A thread that owns a `recursive_timed_mutex` object may acquire
|
| 40 |
additional levels of ownership by calling `lock()`, `try_lock()`,
|
|
|
|
| 16 |
bool try_lock_for(const chrono::duration<Rep, Period>& rel_time);
|
| 17 |
template <class Clock, class Duration>
|
| 18 |
bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
|
| 19 |
void unlock();
|
| 20 |
|
| 21 |
+
using native_handle_type = implementation-defined; // See~[thread.req.native]
|
| 22 |
native_handle_type native_handle(); // See~[thread.req.native]
|
| 23 |
};
|
| 24 |
}
|
| 25 |
```
|
| 26 |
|
|
|
|
| 30 |
ownership of that object will fail (for `try_lock()`) or block (for
|
| 31 |
`lock()`, `try_lock_for()`, and `try_lock_until()`) until the owning
|
| 32 |
thread has completely released ownership or the call to `try_lock_for()`
|
| 33 |
or `try_lock_until()` times out (having failed to obtain ownership).
|
| 34 |
|
| 35 |
+
The class `recursive_timed_mutex` shall satisfy all of the timed mutex
|
| 36 |
requirements ([[thread.timedmutex.requirements]]). It shall be a
|
| 37 |
standard-layout class (Clause [[class]]).
|
| 38 |
|
| 39 |
A thread that owns a `recursive_timed_mutex` object may acquire
|
| 40 |
additional levels of ownership by calling `lock()`, `try_lock()`,
|