#include <atomicops.h>
Definition at line 564 of file atomicops.h.
◆ ssize_t
◆ LightweightSemaphore()
| AE_NO_TSAN spsc_sema::LightweightSemaphore::LightweightSemaphore |
( |
ssize_t |
initialCount = 0 | ) |
|
|
inline |
Definition at line 617 of file atomicops.h.
619 assert(initialCount >= 0);
weak_atomic< ssize_t > m_count
◆ availableApprox()
| ssize_t spsc_sema::LightweightSemaphore::availableApprox |
( |
| ) |
const |
|
inline |
◆ signal()
| void spsc_sema::LightweightSemaphore::signal |
( |
ssize_t |
count = 1 | ) |
|
|
inline |
◆ tryWait()
| bool spsc_sema::LightweightSemaphore::tryWait |
( |
| ) |
|
|
inline |
◆ wait() [1/2]
| void spsc_sema::LightweightSemaphore::wait |
( |
| ) |
|
|
inline |
◆ wait() [2/2]
| bool spsc_sema::LightweightSemaphore::wait |
( |
std::int64_t |
timeout_usecs | ) |
|
|
inline |
◆ waitWithPartialSpinning()
| bool spsc_sema::LightweightSemaphore::waitWithPartialSpinning |
( |
std::int64_t |
timeout_usecs = -1 | ) |
|
|
inlineprivate |
◆ m_count
◆ m_sema
| Semaphore spsc_sema::LightweightSemaphore::m_sema |
|
private |
The documentation for this class was generated from the following file: