Android.Database.Sqlite.SQLiteDatabase.YieldIfContendedSafely Method
Temporarily end the transaction to let other threads run.

Syntax

[Android.Runtime.Register("yieldIfContendedSafely", "(J)Z", "GetYieldIfContendedSafely_JHandler")]
public virtual bool YieldIfContendedSafely (long sleepAfterYieldDelay)

Parameters

sleepAfterYieldDelay
if > 0, sleep this long before starting a new transaction if the lock was actually yielded. This will allow other background threads to make some more progress than they would if we started the transaction immediately.

Returns

Documentation for this section has not yet been entered.

Remarks

Temporarily end the transaction to let other threads run. The transaction is assumed to be successful so far. Do not call setTransactionSuccessful before calling this. When this returns a new transaction will have been created but not marked as successful. This assumes that there are no nested transactions (beginTransaction has only been called once) and will throw an exception if that is not the case.

[Android Documentation]

Requirements

Namespace: Android.Database.Sqlite
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5