Constructors
Synopses
Declared in <bslmt_timedcompletionguard.h>
Create a timed completion guard using failByAbort.
Create the guard using the specified basicAllocator to supply memory.
explicit
TimedCompletionGuard(allocator_type const& basicAllocator);
Create a timed completion guard that invokes function on expiration.
TimedCompletionGuard(
Handler function,
allocator_type const& basicAllocator = allocator_type());
Parameters
Name |
Description |
basicAllocator |
allocator used to supply memory |
function |
handler invoked when a set duration expires |
Created with MrDocs