mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-05 03:43:52 +00:00
added synchronization to WindTrackImpl.add again since it seems not to have been at fault; added threads:
One thread per listener in the UDPReceiver. They each have a bounded queue and wait for incoming messages with a timeout. They are stopped when the listener unsubscribes.
This commit is contained in:
1 parent
cf6760fddb
commit
159faebefb
2 files changed
+49
-2
No files matched your search
+3
-1
@@ -63,7 +63,9 @@ public class WindTrackImpl extends TrackImpl<Wind> implements WindTrack {
|
||||
|
||||
@Override
|
||||
public void add(Wind wind) {
|
||||
getInternalRawFixes().add(wind);
|
||||
synchronized (this) {
|
||||
getInternalRawFixes().add(wind);
|
||||
}
|
||||
notifyListenersAboutReceive(wind);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user