Improving my JavaPOS keyboard driver.
authorgumartinm <gustavo@gumartinm.name>
Sun, 6 May 2012 04:17:13 +0000 (06:17 +0200)
committergumartinm <gustavo@gumartinm.name>
Sun, 6 May 2012 04:17:13 +0000 (06:17 +0200)
commit9eabe64daebe59c53b61e8b678cc99364a6e2b55
treebe9040cff8df354583d697b40dea42b9e8c4bd15
parent48f3a803afc5aa32e5bc1e02214a7732e5e69823
Improving my JavaPOS keyboard driver.

Using in the claim method explicit Locks instead of synchronized.
In this way we can throw an exception in case of we lock for a time up to timeout.
JavaPOS/KeyBoardDriver/src/main/java/de/javapos/example/hardware/BaseKeyBoardDriver.java
JavaPOS/KeyBoardDriver/src/main/java/de/javapos/example/hardware/KeyBoardDeviceLinux.java
JavaPOS/KeyBoardDriver/src/main/java/de/javapos/example/queue/JposEventQueueImpl.java