StampedLock.TryUnlockWrite Method

Definition

Releases the write lock if it is held, without requiring a stamp value.

[Android.Runtime.Register("tryUnlockWrite", "()Z", "GetTryUnlockWriteHandler", ApiSince=24)]
public virtual bool TryUnlockWrite ();
[<Android.Runtime.Register("tryUnlockWrite", "()Z", "GetTryUnlockWriteHandler", ApiSince=24)>]
abstract member TryUnlockWrite : unit -> bool
override this.TryUnlockWrite : unit -> bool

Returns

true if the lock was held, else false

Attributes

Remarks

Releases the write lock if it is held, without requiring a stamp value. This method may be useful for recovery after errors.

Java documentation for java.util.concurrent.locks.StampedLock.tryUnlockWrite().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to