mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Move immediate connection notification logic into Dispatcher.
This prevents a race condition that could result in out of order notifications.
This commit is contained in:
@@ -57,9 +57,9 @@ class ConnectionNotifier
|
||||
|
||||
void Start();
|
||||
|
||||
unsigned int Add(
|
||||
std::function<void(const ConnectionNotification& event)> callback);
|
||||
unsigned int AddPolled(unsigned int poller_uid);
|
||||
unsigned int Add(std::function<void(const ConnectionNotification& event)>
|
||||
callback) override;
|
||||
unsigned int AddPolled(unsigned int poller_uid) override;
|
||||
|
||||
void NotifyConnection(bool connected, const ConnectionInfo& conn_info,
|
||||
unsigned int only_listener = UINT_MAX) override;
|
||||
|
||||
Reference in New Issue
Block a user