jdk/src/java.desktop/share/classes/com/sun/media/sound/MidiInDevice.java
changeset 38981 9521cb19e297
parent 25859 3317bb8137f4
child 40444 afabcfc2f3ef
equal deleted inserted replaced
38980:c0b4fd06d439 38981:9521cb19e297
     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);