LockSupport.GetBlocker(Thread) 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.
Returns the blocker object supplied to the most recent invocation of a park method that has not yet unblocked, or null if not blocked.
[Android.Runtime.Register("getBlocker", "(Ljava/lang/Thread;)Ljava/lang/Object;", "")]
public static Java.Lang.Object? GetBlocker (Java.Lang.Thread? t);
[<Android.Runtime.Register("getBlocker", "(Ljava/lang/Thread;)Ljava/lang/Object;", "")>]
static member GetBlocker : Java.Lang.Thread -> Java.Lang.Object
Parameters
- t
- Thread
the thread
Returns
the blocker
- Attributes
Exceptions
if argument is null
Remarks
Returns the blocker object supplied to the most recent invocation of a park method that has not yet unblocked, or null if not blocked. The value returned is just a momentary snapshot -- the thread may have since unblocked or blocked on a different blocker object.
Added in 1.6.
Java documentation for java.util.concurrent.locks.LockSupport.getBlocker(java.lang.Thread)
.
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.