Constructors

Synopses

Declared in <bslmt_sluice.h>

Create a sluice. Optionally specify a clockType indicating the type of the system clock against which the bsls::TimeInterval absTime timeouts passed to the timedWait method are to be interpreted (see {Supported Clock‐Types} in the component documentation). If clockType is not specified then the realtime system clock is used. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

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

Create a sluice. Use the specified clockType as the clock against which the bsls::TimeInterval absTime timeouts passed to the timedWait method are to be interpreted (see {Supported Clock‐Types} in the component documentation). Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

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

Create a sluice. 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.

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

Create a sluice. Use the realtime 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.

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

Created with MrDocs