From e7687e020f6d31a22aadb08aa73ae000796ae139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Tue, 13 Aug 2024 19:42:02 +0200 Subject: Server: avoid executing callbacks while holding locks --- src/network.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/network.h') diff --git a/src/network.h b/src/network.h index d1fae15..12ec4e1 100644 --- a/src/network.h +++ b/src/network.h @@ -57,10 +57,10 @@ struct Server::Peer shared_ptr lpeer = nullptr; - void updateIdentity(ReplyBuilder &); + void updateIdentity(ReplyBuilder &, vector> & notifyPeers); void updateChannel(ReplyBuilder &); void finalizeChannel(ReplyBuilder &, unique_ptr); - void updateService(ReplyBuilder &); + void updateService(ReplyBuilder &, vector, Service &, Ref>> & readyServices); }; struct Peer::Priv : enable_shared_from_this @@ -70,6 +70,7 @@ struct Peer::Priv : enable_shared_from_this size_t listIndex; void notifyWatchers(); + void runServicesHandler(Service & service, Ref ref); }; struct PeerList::Priv : enable_shared_from_this -- cgit v1.2.3