Skip to main content
.NET 6.0+

SimpleDataLayer.SuppressReentrancyAndThreadSafetyCheck Property

OBSOLETE

Reentrancy and thread safety check suppressed

Disables the thread safety diagnostic function.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

[Obsolete("Reentrancy and thread safety check suppressed")]
public static bool SuppressReentrancyAndThreadSafetyCheck { get; set; }

Property Value

Type Description
Boolean

true if the thread safety diagnostic function is disabled; otherwise false (default value is false).

Remarks

The SimpleDataLayer component is not thread safe. It performs operations relying on the underlying state and may misbehave if the underlying state is changed by another thread. Adhering the “fail-fast” principle, XPO raises the “Reentrancy or cross thread operation detected” error when it detects that SimpleDataLayer methods are used concurrently in several threads. The SuppressReentrancyAndThreadSafetyCheck option is provided to temporarily disable the thread safety check.

This option is intended for backward compatibility or diagnostic purposes. You are strongly advised against using this option in production code. Use the information available at How to troubleshoot the “Reentrancy or cross thread operation detected” error to learn how to fix detected issues.

See Also