Skip to content

QuantumGate::Extender::PeerEventCallback

Karel Donk edited this page Dec 10, 2019 · 1 revision

This callback function gets called by the QuantumGate instance to notify an extender of a peer event.

Declaration

Callback<void(PeerEvent&&)>;

Parameters

Type Description
PeerEvent&& A QuantumGate::Extender::PeerEvent object containing details about the event.

Thread safety

Note that it's possible for a QuantumGate instance to invoke this callback function simultaneously from multiple threads. Therefore if you access shared resources (memory, variables, files, etc.) from within this callback function, make sure that you build in the necessary synchronization (using mutexes etc.).

Clone this wiki locally