equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
36 * @author Kara Kytle |
36 * @author Kara Kytle |
37 * @author Florian Bomers |
37 * @author Florian Bomers |
38 */ |
38 */ |
39 final class MidiInDevice extends AbstractMidiDevice implements Runnable { |
39 final class MidiInDevice extends AbstractMidiDevice implements Runnable { |
40 |
40 |
41 private Thread midiInThread = null; |
41 private volatile Thread midiInThread; |
42 |
42 |
43 // CONSTRUCTOR |
43 // CONSTRUCTOR |
44 |
44 |
45 MidiInDevice(AbstractMidiDeviceProvider.Info info) { |
45 MidiInDevice(AbstractMidiDeviceProvider.Info info) { |
46 super(info); |
46 super(info); |