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:
@@ -16,6 +16,11 @@ namespace nt {
|
||||
|
||||
class MockConnectionNotifier : public IConnectionNotifier {
|
||||
public:
|
||||
MOCK_METHOD1(
|
||||
Add,
|
||||
unsigned int(
|
||||
std::function<void(const ConnectionNotification& event)> callback));
|
||||
MOCK_METHOD1(AddPolled, unsigned int(unsigned int poller_uid));
|
||||
MOCK_METHOD3(NotifyConnection,
|
||||
void(bool connected, const ConnectionInfo& conn_info,
|
||||
unsigned int only_listener));
|
||||
|
||||
Reference in New Issue
Block a user