1.1 --- a/libfsserver/lib/generic/notification.cc Fri Oct 01 01:16:14 2021 +0200
1.2 +++ b/libfsserver/lib/generic/notification.cc Sat Oct 02 23:57:02 2021 +0200
1.3 @@ -159,6 +159,18 @@
1.4 ep.deferred = flags;
1.5 }
1.6
1.7 +/* Notify all endpoints. */
1.8 +
1.9 +void NotificationSupport::notify_all(notify_flags_t flags)
1.10 +{
1.11 + std::lock_guard<std::mutex> guard(_lock);
1.12 +
1.13 + for (unsigned int i = 0; i < _endpoints.size(); i++)
1.14 + _notify(i, flags);
1.15 +
1.16 + _deferred |= flags;
1.17 +}
1.18 +
1.19 /* Notify the other endpoints. */
1.20
1.21 void NotificationSupport::notify_others(unsigned int endpoint, notify_flags_t flags)