diff options
author | Sven Gothel <[email protected]> | 2011-04-26 07:57:30 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-04-26 07:57:30 +0200 |
commit | 245bd152c3f328e5df69d60da975697431fa923b (patch) | |
tree | 4631190f584ede53a2cc603e872bcbd02864ca39 /src/java/com/jogamp/common/util/locks | |
parent | 3a8676f56850304c782c0121dcaad2d44ef2baec (diff) |
RecursiveLock: Expose waiting thread queue size
Diffstat (limited to 'src/java/com/jogamp/common/util/locks')
-rw-r--r-- | src/java/com/jogamp/common/util/locks/RecursiveLock.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/util/locks/RecursiveLock.java b/src/java/com/jogamp/common/util/locks/RecursiveLock.java index 2ff0d9b..ad29f78 100644 --- a/src/java/com/jogamp/common/util/locks/RecursiveLock.java +++ b/src/java/com/jogamp/common/util/locks/RecursiveLock.java @@ -235,5 +235,11 @@ public class RecursiveLock implements LockExt { } } } + + public int getWaitingThreadQueueSize() { + synchronized(sdata) { + return sdata.threadQueue.size(); + } + } } |