![]() |
Bitcoin Core 31.99.0
P2P Digital Currency
|
btcsignals is a simple mechanism for signaling events to multiple subscribers. More...
Classes | |
| class | connection |
| class | optional_last_value |
| class | scoped_connection |
| class | signal |
btcsignals is a simple mechanism for signaling events to multiple subscribers.
It is api-compatible with a minimal subset of boost::signals2.
Rather than using a custom slot type, and the features/complexity that they imply, std::function is used to store the callbacks. Lifetime management of the callbacks is left up to the user.
All usage is thread-safe except for interacting with a connection while copying/moving it on another thread.