RAII-style controller object for a CCheckQueue that guarantees the passed queue is finished before continuing.
Declared in <checkqueue.h>
template<
typename T,
typename R = std::remove_cvref_t<decltype(std::declval<T>()().value())>>
class [[scoped_lockable]] CCheckQueueControl;
| Name | Description |
|---|---|
CCheckQueueControl [constructor] | Constructors |
~CCheckQueueControl [destructor] | Completes any outstanding checks (if not already done) and releases the lock. |
operator= [deleted] | Deleted copy assignment; the controller holds an exclusive lock. |
Add | Adds a batch of checks to the controlled queue. |
Complete | Waits for all queued checks to finish and returns any failure. |