meerkat-java/voting-booth/src
Hai Brenner da7a05ecd8 Fix: UI now has command queue of size 1.
A new CommandPend class is introduced. It functions basically as
an ArrayBlockingQueue of size 1.
Difference is that it can handle two functions from two different threads
 - trample(cmd): removes the previously kept command (if there is such) and overrides it with the next command
 - offer(cmd): keeps the given command, but only if it doesn't currently keeps an older one

This new functionality is used so the UI can get commands from the controller
(but only take into account the latest one). At the same time it gets tick commands
from its clock ticker, but only keep and handle those if it doesn't have
a real controller command to handle.
2016-07-19 12:05:06 +03:00
..
main/java/meerkat/voting Fix: UI now has command queue of size 1. 2016-07-19 12:05:06 +03:00
test/java/meerkat/voting Test: Add NetworkVirtualPrinterTest 2016-07-12 11:54:50 +03:00