Aracılığıyla paylaş


AbstractPreferences.Lock Property

Definition

An object whose monitor is used to lock this node.

[Android.Runtime.Register("lock")]
protected Java.Lang.Object? Lock { get; set; }
[<Android.Runtime.Register("lock")>]
member this.Lock : Java.Lang.Object with get, set

Property Value

Attributes

Remarks

An object whose monitor is used to lock this node. This object is used in preference to the node itself to reduce the likelihood of intentional or unintentional denial of service due to a locked node. To avoid deadlock, a node is never locked by a thread that holds a lock on a descendant of that node.

Java documentation for java.util.prefs.AbstractPreferences.lock.

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