std::defer_lock, std::try_to_lock, std::adopt_lock
Aus cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody> constexpr std::defer_lock_t defer_lock = std::defer_lock_t(); |
(seit C++11) | |
constexpr std::try_to_lock_t try_to_lock = std::try_to_lock_t(); |
(seit C++11) | |
constexpr std::adopt_lock_t adopt_lock = std::adopt_lock_t(); |
(seit C++11) | |
std::defer_lock, std::try_to_lock and std::adopt_lock are instances of empty struct tag types std::defer_lock_t, std::try_to_lock_t and std::adopt_lock_t respectively.
They are used to specify locking strategies for std::lock_guard and std::unique_lock.
Type Original: Type The text has been machine-translated via | |