diff options
author | Sven Gothel <[email protected]> | 2015-09-15 06:36:35 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-09-15 06:36:35 +0200 |
commit | 3e40d97a9a7a60e746b3703d2c7d3f4884159a52 (patch) | |
tree | b7682721b8486025d18adcea3e3dba79e510622b /src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java | |
parent | 1c4e2d3ea379fe6578dfb84e10f22729b71b1ae5 (diff) |
Bug 1213: Use InterruptSource.Thread
Diffstat (limited to 'src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java')
-rw-r--r-- | src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java b/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java index 44a5d28..9fe7966 100644 --- a/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java +++ b/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java @@ -32,6 +32,8 @@ import java.io.File; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.channels.FileLock; + +import com.jogamp.common.util.InterruptSource; import com.jogamp.common.util.locks.SingletonInstance; public class SingletonInstanceFileLock extends SingletonInstance { @@ -76,7 +78,7 @@ public class SingletonInstanceFileLock extends SingletonInstance { private void setupFileCleanup() { file.deleteOnExit(); - Runtime.getRuntime().addShutdownHook(new Thread() { + Runtime.getRuntime().addShutdownHook(new InterruptSource.Thread() { @Override public void run() { if(isLocked()) { |