BloombergLP::bdlmt::SignalerConnectionGuard::SignalerConnectionGuard

Create a guard by moving from connection.

Synopsis

Declared in <bdlmt_signaler.h>

explicit
SignalerConnectionGuard(
    bslmf::MovableRef<SignalerConnection> connection,
    bool waitOnDisconnect = false) noexcept;

Description

Create a SignalerConnectionGuard that refers to the same slot, if any, as the specified connection, which is left in an unspecified state. Optionally specify waitOnDisconnect indicating whether disconnect or disconnectAndWait will be called on the slot, if any, managed by this object upon destruction or assignment. Throws nothing.

Parameters

NameDescription
connectionconnection to move from
waitOnDisconnectif true, use disconnectAndWait on release