Browse Source

Add thread name in DxgiConnection (#20505)

The thread name in WinUiCompositorConnection is DwmRenderTimerLoop
release/latest
lindexi 2 months ago
committed by Julien Lebosquain
parent
commit
e159c1fe4f
  1. 1
      src/Windows/Avalonia.Win32/DirectX/DxgiConnection.cs

1
src/Windows/Avalonia.Win32/DirectX/DxgiConnection.cs

@ -168,6 +168,7 @@ namespace Avalonia.Win32.DirectX
}); });
thread.IsBackground = true; thread.IsBackground = true;
thread.SetApartmentState(System.Threading.ApartmentState.STA); thread.SetApartmentState(System.Threading.ApartmentState.STA);
thread.Name = "DxgiRenderTimerLoop";
thread.Start(); thread.Start();
// block until // block until
return tcs.Task.Result; return tcs.Task.Result;

Loading…
Cancel
Save