C++ Instrument Catalog
Public Member Functions | List of all members
MTL::ThreadedMailbox::CSemaphore Class Reference

#include <ThreadedMailbox.h>

Public Member Functions

void reset ()
 Reset semaphore object. More...
 
void notify ()
 Raise a semaphore. More...
 
void wait ()
 Wait for a semaphore. More...
 
bool wait_for (std::chrono::milliseconds timeout_ms)
 Wait for a semaphore for a limited time. More...
 
bool try_wait ()
 Check whether a semaphore has been raised. More...
 

Detailed Description

Definition at line 19 of file ThreadedMailbox.h.

Member Function Documentation

◆ notify()

void MTL::ThreadedMailbox::CSemaphore::notify ( )
inline

Raise a semaphore.

Definition at line 34 of file ThreadedMailbox.h.

◆ reset()

void MTL::ThreadedMailbox::CSemaphore::reset ( )
inline

Reset semaphore object.

Definition at line 28 of file ThreadedMailbox.h.

◆ try_wait()

bool MTL::ThreadedMailbox::CSemaphore::try_wait ( )
inline

Check whether a semaphore has been raised.

Definition at line 60 of file ThreadedMailbox.h.

◆ wait()

void MTL::ThreadedMailbox::CSemaphore::wait ( )
inline

Wait for a semaphore.

Definition at line 41 of file ThreadedMailbox.h.

◆ wait_for()

bool MTL::ThreadedMailbox::CSemaphore::wait_for ( std::chrono::milliseconds  timeout_ms)
inline

Wait for a semaphore for a limited time.

Definition at line 49 of file ThreadedMailbox.h.


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