Java.Util.Concurrent.Locks.ILock.NewCondition Method
Returns a new Java.Util.Concurrent.Locks.ICondition instance that is bound to this Lock instance.

Syntax

[Android.Runtime.Register("newCondition", "()Ljava/util/concurrent/locks/Condition;", "GetNewConditionHandler:Java.Util.Concurrent.Locks.ILockInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public ICondition NewCondition ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.UnsupportedOperationExceptionif this Lock implementation does not support conditions

Remarks

Returns a new Java.Util.Concurrent.Locks.ICondition instance that is bound to this Lock instance.

Before waiting on the condition the lock must be held by the current thread. A call to ICondition.Await will atomically release the lock before waiting and re-acquire the lock before the wait returns.

Implementation Considerations

The exact operation of the Java.Util.Concurrent.Locks.ICondition instance depends on the Lock implementation and must be documented by that implementation.

[Android Documentation]

Requirements

Namespace: Java.Util.Concurrent.Locks
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1