4 ms·
currentPos is modified in one thread and read in a different thread, outside of a synchronized block, and without being protected by a mutex. It's a pretty str
by jlarocco 13y ago
currentPos is modified in one thread and read in a different thread, outside of a synchronized block, and without being protected by a mutex.
It's a pretty straightforward recipe for disaster.