TimedCompletionGuard [constructor] | Constructors |
~TimedCompletionGuard [destructor] | Invoke release and destroy this guard. |
get_allocator | Return the allocator used to supply memory. |
guard | Configure a thread to, at the expiration of the specified duration, invoke the handler assigned at object creation with the specified text, unless the release method is invoked or this guard is rescheduled with a subsequent call to guard. Return 0 on success, and a non-zero value if a thread is not available and could not be created. The behavior is undefined unless duration is a positive value. |
isGuarding | Return true if this guard is currently configured with a duration to guard, and false otherwise. |
release | If a thread is waiting to alert at expiration of the set duration, join the thread, thus preventing any alerting. |
updateText | Use the specified text for alerting when the current duration expires. Return 0 on success, and a non-zero value if false == isGuarding(). |