BloombergLP::bslmt::TimedCompletionGuard::TimedCompletionGuard

Constructors

Synopses

Declared in <bslmt_timedcompletionguard.h>

Create a timed completion guard using failByAbort.

TimedCompletionGuard();
» more...

Create the guard using the specified basicAllocator to supply memory.

explicit
TimedCompletionGuard(allocator_type const& basicAllocator);
» more...

Create a timed completion guard that invokes function on expiration.

TimedCompletionGuard(
    Handler function,
    allocator_type const& basicAllocator = allocator_type());
» more...

Parameters

NameDescription
basicAllocatorallocator used to supply memory
functionhandler invoked when a set duration expires