StampedLock.IsOptimisticReadStamp(Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tells whether a stamp represents a successful optimistic read.
[Android.Runtime.Register("isOptimisticReadStamp", "(J)Z", "", ApiSince=33)]
public static bool IsOptimisticReadStamp (long stamp);
[<Android.Runtime.Register("isOptimisticReadStamp", "(J)Z", "", ApiSince=33)>]
static member IsOptimisticReadStamp : int64 -> bool
Parameters
- stamp
- Int64
a stamp returned by a previous StampedLock operation
Returns
true
if the stamp was returned by a successful
optimistic read operation, that is, a non-zero return from
#tryOptimisticRead()
or
#tryConvertToOptimisticRead(long)
- Attributes
Remarks
Tells whether a stamp represents a successful optimistic read.
Added in 10.
Java documentation for java.util.concurrent.locks.StampedLock.isOptimisticReadStamp(long)
.
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.