Create a guard that manages the same slot as connection.
Synopsis
Declared in <bdlmt_signaler.h>
explicit
SignalerConnectionGuard(
SignalerConnection const& connection,
bool waitOnDisconnect = false);
Description
Create a SignalerConnectionGuard object that refers to and assumes management of the same slot, if any, as the specified connection object. Upon destruction or assignment, the optionally specified waitOnDisconnect determines whether disconnect or disconnectAndWait will be called on the slot managed by this object, if any.
Parameters
Name |
Description |
connection |
connection whose slot this guard will manage |
waitOnDisconnect |
if |
Created with MrDocs