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:
Axel Uhl committed 2012-02-21 23:07:43 +01:00
1 parent cf6760fddb
commit 159faebefb
2 files changed
+49 -2

No files matched your search

@@ -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);
}