Create a sluice that uses the monotonic clock.

Synopsis

Declared in <bslmt_sluice.h>

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

Description

Use the monotonic system clock as the clock against which the absTime timeouts passed to the timedWait methods are interpreted (see {Supported Clock‐Types} in the component‐level documentation). Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

Name

Description

steadyClock

tag selecting the system monotonic clock

basicAllocator

memory allocator; null uses the default

Created with MrDocs