Skip to content

Commit

Permalink
Fix incorrect locking in KeyboardSimulator should address #82
Browse files Browse the repository at this point in the history
  • Loading branch information
TheThirdOne committed Jul 10, 2020
1 parent 0bca658 commit ce16f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rars/tools/KeyboardAndDisplaySimulator.java
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ private void updateMMIOControlAndData(int controlAddr, int controlValue, int dat
/////////////////////////////////////////////////////////////////////////////////////////////////////
// This one does the work: update the MMIO Control and optionally the Data register as well
// NOTE: last argument TRUE means update only the MMIO Control register; FALSE means update both Control and Data.
private synchronized void updateMMIOControlAndData(int controlAddr, int controlValue, int dataAddr, int dataValue, boolean controlOnly) {
private void updateMMIOControlAndData(int controlAddr, int controlValue, int dataAddr, int dataValue, boolean controlOnly) {
if (!this.isBeingUsedAsATool || (this.isBeingUsedAsATool && connectButton.isConnected())) {
Globals.memoryAndRegistersLock.lock();
try {
Expand Down

0 comments on commit ce16f26

Please sign in to comment.