Skip to content

moodycamel::spsc_sema::LightweightSemaphore

#include <atomicops.h>

Public Types

Name
typedef std::make_signed< std::size_t >::type ssize_t

Public Functions

Name
AE_NO_TSAN LightweightSemaphore(ssize_t initialCount =0)
bool tryWait()
void wait()
bool wait(std::int64_t timeout_usecs)
void signal(ssize_t count =1)
ssize_t availableApprox() const

Public Types Documentation

typedef ssize_t

1
typedef std::make_signed<std::size_t>::type moodycamel::spsc_sema::LightweightSemaphore::ssize_t;

Public Functions Documentation

function LightweightSemaphore

1
2
3
inline AE_NO_TSAN LightweightSemaphore(
    ssize_t initialCount =0
)

function tryWait

1
inline bool tryWait()

function wait

1
inline void wait()

function wait

1
2
3
inline bool wait(
    std::int64_t timeout_usecs
)

function signal

1
2
3
inline void signal(
    ssize_t count =1
)

function availableApprox

1
inline ssize_t availableApprox() const

Updated on 2023-07-03 at 11:02:02 +0000