Constructors

Synopses

Declared in <bslmt_sluice.h>

Create a sluice.

explicit
Sluice(bslma::Allocator* basicAllocator = 0);

Create a sluice that uses the specified clockType.

explicit
Sluice(
    bsls::SystemClockType::Enum clockType,
    bslma::Allocator* basicAllocator = 0);

Create a sluice that uses the monotonic clock.

explicit
Sluice(
    std::chrono::steady_clock const& steadyClock,
    bslma::Allocator* basicAllocator = 0);

Create a sluice that uses the realtime clock.

explicit
Sluice(
    std::chrono::system_clock const& systemClock,
    bslma::Allocator* basicAllocator = 0);

Parameters

Name

Description

basicAllocator

memory allocator; null uses the default

clockType

clock used to interpret timedWait timeouts

steadyClock

tag selecting the system monotonic clock

systemClock

tag selecting the system realtime clock

Created with MrDocs