From 1c4e2d3ea379fe6578dfb84e10f22729b71b1ae5 Mon Sep 17 00:00:00 2001
From: Sven Gothel <sgothel@jausoft.com>
Date: Tue, 15 Sep 2015 05:12:14 +0200
Subject: Bug 1213: Refine changes .. comments and API

- Use InterruptSource.Thread.create(..),
  while reducing InterruptSource.Thread ctors to 3 variants.

- Use InterruptSource.Thread instead of java.lang.Thread where possible

- Use SourcedInterruptedException where possible

- SingletonInstanceServerSocket: start(), stop() and run()
  - Persistent-Wait and Cancelable

- Add @since 2.3.2
---
 src/java/com/jogamp/common/util/cache/TempFileCache.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/java/com/jogamp/common/util/cache/TempFileCache.java')

diff --git a/src/java/com/jogamp/common/util/cache/TempFileCache.java b/src/java/com/jogamp/common/util/cache/TempFileCache.java
index 24f0237..44c7a11 100644
--- a/src/java/com/jogamp/common/util/cache/TempFileCache.java
+++ b/src/java/com/jogamp/common/util/cache/TempFileCache.java
@@ -35,6 +35,7 @@ import java.nio.channels.FileChannel;
 import java.nio.channels.FileLock;
 
 import com.jogamp.common.util.IOUtil;
+import com.jogamp.common.util.InterruptSource;
 
 import jogamp.common.Debug;
 
@@ -238,7 +239,7 @@ public class TempFileCache {
             // Add shutdown hook to cleanup the OutputStream, FileChannel,
             // and FileLock for the jlnNNNN.lck and jlnNNNN.lck files.
             // We do this so that the locks never get garbage-collected.
-            Runtime.getRuntime().addShutdownHook(new Thread() {
+            Runtime.getRuntime().addShutdownHook(new InterruptSource.Thread() {
                 /* @Override */
                 @Override
                 public void run() {
@@ -265,7 +266,7 @@ public class TempFileCache {
             }
 
             // Start a new Reaper thread to do stuff...
-            final Thread reaperThread = new Thread() {
+            final Thread reaperThread = new InterruptSource.Thread() {
                 /* @Override */
                 @Override
                 public void run() {
-- 
cgit v1.2.3