mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Partial merge of patch from James Killian
Narrows scope of locks in write manager added delay to incomming stream monitor loop Change-Id: I6ced23c11cd3c2102041a73cb94fd1f1d351c7a4
This commit is contained in:
committed by
Brad Miller
parent
048b02e6cd
commit
39158754d7
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "networktables2/server/ServerIncomingStreamMonitor.h"
|
||||
#include "networktables2/stream/IOStream.h"
|
||||
#include "networktables2/util/System.h"
|
||||
|
||||
ServerIncomingStreamMonitor::ServerIncomingStreamMonitor(IOStreamProvider& _streamProvider, ServerNetworkTableEntryStore& _entryStore,
|
||||
ServerIncomingConnectionListener& _incomingListener, ServerAdapterManager& _adapterListener, NetworkTableEntryTypeManager& _typeManager,
|
||||
@@ -69,6 +70,7 @@ void ServerIncomingStreamMonitor::run()
|
||||
ServerConnectionAdapter* connectionAdapter = new ServerConnectionAdapter(newStream, entryStore, entryStore, adapterListener, typeManager, threadManager);
|
||||
incomingListener.OnNewConnection(*connectionAdapter);
|
||||
}
|
||||
sleep_ms(100); //avoid busy wait
|
||||
}
|
||||
}
|
||||
catch (IOException& e)
|
||||
|
||||
Reference in New Issue
Block a user