Update SpinWaitPolyfill.cs

This commit is contained in:
DismissedLight
2024-05-16 22:18:36 +08:00
parent 8a1781b449
commit 4323ced7dc

View File

@@ -5,8 +5,6 @@ using System.Diagnostics;
namespace Snap.Hutao.Core.Threading;
internal delegate bool SpinWaitPredicate<T>(ref readonly T state);
internal static class SpinWaitPolyfill
{
public static unsafe void SpinUntil<T>(ref T state, delegate*<ref readonly T, bool> condition)