Package jmri.jmrit.audio
Interface AudioThread
- All Superinterfaces:
Runnable
- All Known Implementing Classes:
AbstractAudioListener.AudioListenerMoveThread,AbstractAudioSource.AudioSourceFadeThread,AbstractAudioSource.AudioSourceMoveThread,AbstractAudioThread,AudioCommandThread
Interface defining public methods and variables used in AudioThread classes
This file is part of JMRI.
This file is part of JMRI.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddie()Method used to tell the thread that it should shutdownbooleanChecks if the thread is still alive (or in the process of shutting down)
-
Field Details
-
GET
Used to return value from synchronised boolean methods- See Also:
-
SET
Used to set value in synchronised boolean methods- See Also:
-
NA
Used as parameter when returning value from synchronised boolean methods- See Also:
-
-
Method Details
-
isThreadAlive
boolean isThreadAlive()Checks if the thread is still alive (or in the process of shutting down)Once cleanup has finished, this should return False
- Returns:
- true, while thread is alive; false, when all cleanup has finished
-
die
void die()Method used to tell the thread that it should shutdown
-