# PeerSession::CallbackGuard

<a id="callbackguard"></a>

# CallbackGuard

```cpp
struct CallbackGuard
```

[Defined in src/webrtc/include/icy/webrtc/peersession.h:156](https://github.com/auscaster/icey/blob/main/src/webrtc/include/icy/webrtc/peersession.h#L156)

Shared with queued callbacks, so one that runs after the session is destroyed does nothing.

## Public Attributes

| Return | Name | Description |
|--------|------|-------------|
| `std::atomic< bool >` | [`alive`](#alive-1)  |  |

---

<a id="alive-1"></a>

### alive

```cpp
std::atomic< bool > alive {true}
```

[Defined in src/webrtc/include/icy/webrtc/peersession.h:158](https://github.com/auscaster/icey/blob/main/src/webrtc/include/icy/webrtc/peersession.h#L158)
