BloombergLP::bdlcc::SingleProducerQueueImpl_PopCompleteGuard

This class implements a guard automatically invokes popComplete on a NODE upon destruction.

Synopsis

Declared in <bdlcc_singleproducerqueueimpl.h>

template<
    class TYPE,
    class NODE>
class SingleProducerQueueImpl_PopCompleteGuard;

Member Functions

NameDescription
SingleProducerQueueImpl_PopCompleteGuard [constructor]Create a popComplete guard managing the specified queue and node that will cause the empty condition to be signalled if the specified isEmpty is true.
~SingleProducerQueueImpl_PopCompleteGuard [destructor]Destroy this object and invoke the TYPE::popComplete method with the managed node.