diff options
Diffstat (limited to 'src/java/com')
-rwxr-xr-x | src/java/com/jogamp/common/nio/Buffers.java | 4 | ||||
-rw-r--r-- | src/java/com/jogamp/common/util/locks/RecursiveLock.java | 11 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/java/com/jogamp/common/nio/Buffers.java b/src/java/com/jogamp/common/nio/Buffers.java index 9090433..4a5255e 100755 --- a/src/java/com/jogamp/common/nio/Buffers.java +++ b/src/java/com/jogamp/common/nio/Buffers.java @@ -71,8 +71,8 @@ public class Buffers { return nativeOrder(ByteBuffer.allocateDirect(numElements)); } - public static ByteBuffer newDirectByteBuffer(byte[] values, int offset, int lenght) { - return (ByteBuffer)newDirectByteBuffer(lenght).put(values, offset, lenght).rewind(); + public static ByteBuffer newDirectByteBuffer(byte[] values, int offset, int length) { + return (ByteBuffer)newDirectByteBuffer(length).put(values, offset, length).rewind(); } public static ByteBuffer newDirectByteBuffer(byte[] values, int offset) { diff --git a/src/java/com/jogamp/common/util/locks/RecursiveLock.java b/src/java/com/jogamp/common/util/locks/RecursiveLock.java index 9eb9c8c..3e0a873 100644 --- a/src/java/com/jogamp/common/util/locks/RecursiveLock.java +++ b/src/java/com/jogamp/common/util/locks/RecursiveLock.java @@ -32,10 +32,13 @@ package com.jogamp.common.util.locks; * Reentrance capable locking toolkit. */ public interface RecursiveLock extends ThreadLock { - /** Return the number of locks issued to this lock by the same thread. - * A hold count of 0 identifies this lock as unlocked.<br> - * A hold count of 1 identifies this lock as locked.<br> - * A hold count of > 1 identifies this lock as recursively lock.<br> + /** + * Return the number of locks issued to this lock by the same thread. + * <ul> + * <li>A hold count of 0 identifies this lock as unlocked.</li> + * <li>A hold count of 1 identifies this lock as locked.</li> + * <li>A hold count of > 1 identifies this lock as recursively lock.</li> + * </ul> */ int getHoldCount(); |