Share via


AbstractQueuedSynchronizer.State Property

Definition

Returns the current value of synchronization state. -or- Sets the value of synchronization state.

protected int State { [Android.Runtime.Register("getState", "()I", "")] get; [Android.Runtime.Register("setState", "(I)V", "")] set; }
[<get: Android.Runtime.Register("getState", "()I", "")>]
[<set: Android.Runtime.Register("setState", "(I)V", "")>]
member this.State : int with get, set

Property Value

current state value

Attributes

Remarks

Property getter documentation:

Returns the current value of synchronization state. This operation has memory semantics of a volatile read.

Java documentation for java.util.concurrent.locks.AbstractQueuedSynchronizer.getState().

Property setter documentation:

Sets the value of synchronization state. This operation has memory semantics of a volatile write.

Java documentation for java.util.concurrent.locks.AbstractQueuedSynchronizer.setState(int).

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