In combination with the new assert facility it would be useful if you
could test whether the current thread holds the lock on an object.
Something like:
boolean Object.lockHeld();
would do.
could test whether the current thread holds the lock on an object.
Something like:
boolean Object.lockHeld();
would do.