|
@@ -29,11 +29,11 @@ namespace Avalonia.Shared.PlatformSupport
|
|
|
{
|
|
{
|
|
|
private readonly StandardRuntimePlatform _plat;
|
|
private readonly StandardRuntimePlatform _plat;
|
|
|
private IntPtr _address;
|
|
private IntPtr _address;
|
|
|
|
|
+ private readonly object _lock = new object();
|
|
|
#if DEBUG
|
|
#if DEBUG
|
|
|
private static readonly List<string> Backtraces = new List<string>();
|
|
private static readonly List<string> Backtraces = new List<string>();
|
|
|
private static Thread GCThread;
|
|
private static Thread GCThread;
|
|
|
private readonly string _backtrace;
|
|
private readonly string _backtrace;
|
|
|
- private readonly object _lock = new object();
|
|
|
|
|
private static readonly object _btlock = new object();
|
|
private static readonly object _btlock = new object();
|
|
|
|
|
|
|
|
class GCThreadDetector
|
|
class GCThreadDetector
|
|
@@ -164,4 +164,4 @@ namespace Avalonia.Shared.PlatformSupport
|
|
|
void Free(IntPtr ptr, int len) => Marshal.FreeHGlobal(ptr);
|
|
void Free(IntPtr ptr, int len) => Marshal.FreeHGlobal(ptr);
|
|
|
#endif
|
|
#endif
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+}
|