false
); see
ReentrantLock(...).Lock.lock
, except that some other thread may interrupt the
current thread while blocked; see
lockInterruptibly(...).Java_exception
if the thread is interruptedtrue
. Otherwise,
immediately returns false
; see
tryLock(...).try_lock_time l t u
is similar to lock_interruptibly l
, except
that the current thread will at most wait for t
(time value whose
unit is u
). Returns whether the lock was acquired; see
tryLock(...).Java_exception
if the thread is interruptedJava_exception
if the current thread does not hold the lockwrap obj
wraps the reference obj
into an option type:Some x
if obj
is not null
;None
if obj
is null
.unwrap obj
unwraps the option obj
into a bare reference:Some x
is mapped to x
;None
is mapped to null
.