We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1cae18 commit f9dd7d8Copy full SHA for f9dd7d8
src/tk/azertyfun/dcputoolchain/emulator/DCPU.java
@@ -391,7 +391,7 @@ public void tick() {
391
}
392
393
394
- public void interrupt(char a) {
+ public synchronized void interrupt(char a) {
395
interrupts.add(a);
396
if(interrupts.size() > MAX_QUEUE_SIZE) { //Woops, overflowed the interrupt queue - catching fire (insert evil laugh here)
397
interrupts.removeLast();
0 commit comments