Quick Links:

bal | bbl | bdl | bsl

Namespaces

Component bslmt_platform
[Package bslmt]

Provide platform-dependent thread-related trait definitions. More...

Namespaces

namespace  bslmt

Detailed Description

Outline
Purpose:
Provide platform-dependent thread-related trait definitions.
Classes:
Platform namespace for platform-dependent thread-related traits
See also:
Description:
This component defines a set of traits that identify and describe a platform's concurrency properties. For example, the ThreadPolicy trait is ascribed a "value" (i.e., POSIX or Win32) appropriate for each supported platform. The various concurrency traits are actually types declared in the Platform struct. These types are intended to be used in specializing template implementations or to enable function overloading based on the prevalent system's characteristics.
This component also defines a SemaphorePolicy trait used for selecting a semaphore implementation. Differences among POSIX implementations lead to different semaphore policies for the same ThreadPolicy.
Finally, this component defines a TimedSemaphorePolicy trait used for selecting a timed-semaphore implementation. POSIX platforms that do not have a native timed-wait for semaphores require a custom (pthread-based) implementation.