AbstractQueuedLongSynchronizer.TryReleaseShared(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.
Attempts to set the state to reflect a release in shared mode.
[Android.Runtime.Register("tryReleaseShared", "(J)Z", "GetTryReleaseShared_JHandler")]
protected virtual bool TryReleaseShared (long arg);
[<Android.Runtime.Register("tryReleaseShared", "(J)Z", "GetTryReleaseShared_JHandler")>]
abstract member TryReleaseShared : int64 -> bool
override this.TryReleaseShared : int64 -> bool
Parameters
- arg
- Int64
the release argument. This value is always the one passed to a release method, or the current state value upon entry to a condition wait. The value is otherwise uninterpreted and can represent anything you like.
Returns
true
if this release of shared mode may permit a
waiting acquire (shared or exclusive) to succeed; and
false
otherwise
- Attributes
Exceptions
if releasing would place this synchronizer in an illegal state. This exception must be thrown in a consistent fashion for synchronization to work correctly.
if shared mode is not supported
Remarks
Attempts to set the state to reflect a release in shared mode.
This method is always invoked by the thread performing release.
The default implementation throws UnsupportedOperationException
.
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.