A replacement for std::shared_lock that accepts Deadline arguments.
More...
#include <userver/engine/semaphore.hpp>
|
| SemaphoreLock (Semaphore &) |
|
| SemaphoreLock (Semaphore &, std::defer_lock_t) noexcept |
|
| SemaphoreLock (Semaphore &, std::try_to_lock_t) |
|
| SemaphoreLock (Semaphore &, std::adopt_lock_t) noexcept |
|
template<typename Rep , typename Period > |
| SemaphoreLock (Semaphore &, std::chrono::duration< Rep, Period >) |
|
template<typename Clock , typename Duration > |
| SemaphoreLock (Semaphore &, std::chrono::time_point< Clock, Duration >) |
|
| SemaphoreLock (Semaphore &, Deadline) |
|
| SemaphoreLock (const SemaphoreLock &)=delete |
|
| SemaphoreLock (SemaphoreLock &&) noexcept |
|
SemaphoreLock & | operator= (const SemaphoreLock &)=delete |
|
SemaphoreLock & | operator= (SemaphoreLock &&) noexcept |
|
bool | OwnsLock () const noexcept |
|
| operator bool () const noexcept |
|
void | Lock () |
|
bool | TryLock () |
|
template<typename Rep , typename Period > |
bool | TryLockFor (std::chrono::duration< Rep, Period >) |
|
template<typename Clock , typename Duration > |
bool | TryLockUntil (std::chrono::time_point< Clock, Duration >) |
|
bool | TryLockUntil (Deadline) |
|
void | Unlock () |
|
void | Release () |
|
A replacement for std::shared_lock that accepts Deadline arguments.
Definition at line 207 of file semaphore.hpp.
◆ SemaphoreLock() [1/2]
template<typename Rep , typename Period >
engine::SemaphoreLock::SemaphoreLock |
( |
Semaphore & |
sem, |
|
|
std::chrono::duration< Rep, Period > |
duration |
|
) |
| |
◆ SemaphoreLock() [2/2]
template<typename Clock , typename Duration >
engine::SemaphoreLock::SemaphoreLock |
( |
Semaphore & |
sem, |
|
|
std::chrono::time_point< Clock, Duration > |
until |
|
) |
| |
◆ operator bool()
engine::SemaphoreLock::operator bool |
( |
| ) |
const |
|
inlineexplicitnoexcept |
◆ TryLockFor()
template<typename Rep , typename Period >
bool engine::SemaphoreLock::TryLockFor |
( |
std::chrono::duration< Rep, Period > |
duration | ) |
|
◆ TryLockUntil()
template<typename Clock , typename Duration >
bool engine::SemaphoreLock::TryLockUntil |
( |
std::chrono::time_point< Clock, Duration > |
until | ) |
|
The documentation for this class was generated from the following file: