diff options
Diffstat (limited to 'src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java')
-rw-r--r-- | src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java b/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java index f0bed66..f369941 100644 --- a/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java +++ b/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java @@ -71,11 +71,13 @@ public class SingletonInstanceFileLock extends SingletonInstance { setupFileCleanup(); } + @Override public final String getName() { return file.getPath(); } private void setupFileCleanup() { file.deleteOnExit(); Runtime.getRuntime().addShutdownHook(new Thread() { + @Override public void run() { unlock(); } |