summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-09-21 13:59:38 +0200
committerSven Gothel <[email protected]>2012-09-21 13:59:38 +0200
commitc8a9b89b1f316c259eaec68309f32fdd8289e375 (patch)
tree14020ec7d53b2d70ba1ceb21ce399549b943f8a7 /src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java
parent4aa7541635e1fd8ae6a41f1d32d85828a18f7028 (diff)
SingletonInstanceServerSocket: Add unit tests; Create new server Thread @ start, otherwise we may collide w/ a failed start. Misc: Cleanup / reuse strings.
Diffstat (limited to 'src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java')
-rw-r--r--src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java b/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java
index c8a05ed..a76f261 100644
--- a/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java
+++ b/src/java/jogamp/common/util/locks/SingletonInstanceFileLock.java
@@ -80,7 +80,7 @@ public class SingletonInstanceFileLock extends SingletonInstance {
@Override
public void run() {
if(isLocked()) {
- System.err.println("SLOCK "+System.currentTimeMillis()+" XXX "+getName()+" - Unlock @ JVM Shutdown");
+ System.err.println(infoPrefix()+" XXX "+getName()+" - Unlock @ JVM Shutdown");
}
unlock();
}
@@ -97,7 +97,7 @@ public class SingletonInstanceFileLock extends SingletonInstance {
return true;
}
} catch (Exception e) {
- System.err.println("SLOCK "+System.currentTimeMillis()+" EEE "+getName()+" - Unable to create and/or lock file");
+ System.err.println(infoPrefix()+" III "+getName()+" - Unable to create and/or lock file");
e.printStackTrace();
}
return false;
@@ -119,7 +119,7 @@ public class SingletonInstanceFileLock extends SingletonInstance {
}
return true;
} catch (Exception e) {
- System.err.println("SLOCK "+System.currentTimeMillis()+" EEE "+getName()+" - Unable to remove lock file");
+ System.err.println(infoPrefix()+" EEE "+getName()+" - Unable to remove lock file");
e.printStackTrace();
} finally {
fileLock = null;