Deferred callbacks structure for avoiding deadlock Callbacks are collected while holding the mutex, then invoked after releasing it. More...
#include <dht.h>
Public Member Functions | |
| void | invoke () |
Public Attributes | |
| std::vector< PeerDiscoveryCallback > | callbacks |
| std::vector< Peer > | peers |
| InfoHash | info_hash |
| bool | should_invoke = false |
Deferred callbacks structure for avoiding deadlock Callbacks are collected while holding the mutex, then invoked after releasing it.
|
inline |
| std::vector<PeerDiscoveryCallback> librats::DeferredCallbacks::callbacks |
| InfoHash librats::DeferredCallbacks::info_hash |
| std::vector<Peer> librats::DeferredCallbacks::peers |
| bool librats::DeferredCallbacks::should_invoke = false |