This class implements a portable semaphore type for thread synchronization.

Synopsis

Declared in <bslmt_timedsemaphoreimpl_pthread.h>

Enums

Name

Description

Unnamed enum

The value timedWait returns when a timeout occurs.

Member Functions

Name

Description

TimedSemaphoreImpl [constructor]

Constructors

~TimedSemaphoreImpl [destructor]

Destroy this semaphore object.

clockType

Return the clock type used for timeouts.

post

post overloads

timedWait

Block until this semaphore can be acquired or absTime expires.

tryWait

Decrement the count of this semaphore if it is positive and return 0. Return a non‐zero value otherwise.

wait

Block until the count is a positive value and atomically decrement it.

Created with MrDocs