diff options
Diffstat (limited to 'src/java/com/jogamp/common/util')
-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(); + } + } } |