C++Instrument Catalog MFC 1.2
Metrolab C++InstrumentCatalog for MFC
Loading...
Searching...
No Matches
MTL::ThreadedMailbox::CSemaphore Class Reference

#include <ThreadedMailbox.h>

Public Member Functions

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

Detailed Description

Definition at line 20 of file ThreadedMailbox.h.

Member Function Documentation

◆ notify()

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

Raise a semaphore.

Definition at line 35 of file ThreadedMailbox.h.

◆ reset()

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

Reset semaphore object.

Definition at line 29 of file ThreadedMailbox.h.

◆ try_wait()

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

Check whether a semaphore has been raised.

Definition at line 61 of file ThreadedMailbox.h.

◆ wait()

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

Wait for a semaphore.

Definition at line 42 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 50 of file ThreadedMailbox.h.


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