diff options
author | Sven Gothel <[email protected]> | 2011-06-11 02:54:32 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-06-11 02:54:32 +0200 |
commit | aba5f79ed62128b74962c1efa15a3f921d66b3e0 (patch) | |
tree | abce41d70dccf08a240bc958ee4966b1686aa176 /src/java/com/jogamp/common/util/locks/Lock.java | |
parent | 410fcb6242d1dcf98d6f4eb94f9409d656fc0caa (diff) |
SingletonInstance Enhancements / Minor Lock/LockExt API Change (isLocked moved up)
We learned that FileChannel.lock() is not reliable on at least GNU/Linux + Sun's JVM implementation,
hence we need a ServerSocket implementation.
Since this code may be useful to others, it has been promoted to GlueGen.
- Abstract SingletonInstance
- Implement Lock interface
- SingletonInstance Spezialisation: FileLock and ServerSocket
Minor API Change: LockExt.isLocked() -> Lock.isLocked()
Diffstat (limited to 'src/java/com/jogamp/common/util/locks/Lock.java')
-rw-r--r-- | src/java/com/jogamp/common/util/locks/Lock.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/util/locks/Lock.java b/src/java/com/jogamp/common/util/locks/Lock.java index 4ea8bf4..ad379ef 100644 --- a/src/java/com/jogamp/common/util/locks/Lock.java +++ b/src/java/com/jogamp/common/util/locks/Lock.java @@ -74,4 +74,6 @@ public interface Lock { * @throws RuntimeException in case the lock is not acquired by this thread. */ void unlock() throws RuntimeException; + + boolean isLocked(); } |