omni::telemetry::createGuard

Defined in omni/structuredlog/Telemetry.h

inline extras::UniqueApp omni::telemetry::createGuard()

Create a guard with the standard name and path for the transmitter.

Remark

This guard is needed by all telemetry clients to let the transmitter know when all clients have shut down so it can exit as well.

Returns

A UniqueApp guard that is used to let the transmitter know when it should exit on its own. Telemetry clients should use this to ‘connect’ to the transmitter (note that this does not require the transmitter to be running yet). See launchTransmitter() for an example usage.