Create a guard that manages the same slot as connection.
Declared in <bdlmt_signaler.h>
explicit
SignalerConnectionGuard(
SignalerConnection const& connection,
bool waitOnDisconnect = false);
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.
| Name | Description |
|---|---|
| connection | connection whose slot this guard will manage |
| waitOnDisconnect | if true, use disconnectAndWait on release |