BloombergLP::bslmt::TimedCompletionGuard::TimedCompletionGuard

Create the guard using the specified function handler invoked when a set duration expires. Optionally specify a basicAllocator used to supply memory. If basicAllocator is not specified, the currently installed default allocator is used.

Synopsis

Declared in <bslmt_timedcompletionguard.h>

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