JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Public Types | Public Member Functions
moodycamel::details::mpmc_sema::LightweightSemaphore Class Reference

#include <blockingconcurrentqueue.h>

Public Types

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

Public Member Functions

 LightweightSemaphore (ssize_t initialCount=0)
 
bool tryWait ()
 
void wait ()
 
bool wait (std::int64_t timeout_usecs)
 
ssize_t tryWaitMany (ssize_t max)
 
ssize_t waitMany (ssize_t max, std::int64_t timeout_usecs)
 
ssize_t waitMany (ssize_t max)
 
void signal (ssize_t count=1)
 
ssize_t availableApprox () const
 

Member Typedef Documentation

◆ ssize_t

typedef std::make_signed<std::size_t>::type moodycamel::details::mpmc_sema::LightweightSemaphore::ssize_t

Constructor & Destructor Documentation

◆ LightweightSemaphore()

moodycamel::details::mpmc_sema::LightweightSemaphore::LightweightSemaphore ( ssize_t  initialCount = 0)
inline

Member Function Documentation

◆ availableApprox()

ssize_t moodycamel::details::mpmc_sema::LightweightSemaphore::availableApprox ( ) const
inline

◆ signal()

void moodycamel::details::mpmc_sema::LightweightSemaphore::signal ( ssize_t  count = 1)
inline

◆ tryWait()

bool moodycamel::details::mpmc_sema::LightweightSemaphore::tryWait ( )
inline
Here is the caller graph for this function:

◆ tryWaitMany()

ssize_t moodycamel::details::mpmc_sema::LightweightSemaphore::tryWaitMany ( ssize_t  max)
inline
Here is the caller graph for this function:

◆ wait() [1/2]

void moodycamel::details::mpmc_sema::LightweightSemaphore::wait ( )
inline
Here is the call graph for this function:

◆ wait() [2/2]

bool moodycamel::details::mpmc_sema::LightweightSemaphore::wait ( std::int64_t  timeout_usecs)
inline
Here is the call graph for this function:

◆ waitMany() [1/2]

ssize_t moodycamel::details::mpmc_sema::LightweightSemaphore::waitMany ( ssize_t  max)
inline
Here is the call graph for this function:

◆ waitMany() [2/2]

ssize_t moodycamel::details::mpmc_sema::LightweightSemaphore::waitMany ( ssize_t  max,
std::int64_t  timeout_usecs 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: