BloombergLP::bslmt::Sluice::Sluice

Constructors

Synopses

Declared in <bslmt_sluice.h>

Create a sluice.

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

Create a sluice that uses the specified clockType.

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

Create a sluice that uses the monotonic clock.

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

Create a sluice that uses the realtime clock.

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

Parameters

NameDescription
basicAllocatormemory allocator; null uses the default
clockTypeclock used to interpret timedWait timeouts
steadyClocktag selecting the system monotonic clock
systemClocktag selecting the system realtime clock