LuaScript.Runtime へ実行コアを分離し依存を逆転

このコミットが含まれているのは:
routersys committed 2026-07-03 11:50:23 +09:00
1 親 9a630ecb5a
コミット 79f8ff8839
41ファイル変更
+64 -19

検索条件に一致するファイルはありません

+23
ファイルの表示
@@ -0,0 +1,23 @@
using System;
using System.Threading;
namespace LuaScript
{
internal sealed class SynchronizedCompositor(IBufferCompositor inner, SemaphoreSlim gate) : IBufferCompositor, IDisposable
{
public bool TryCompose(byte[] dst, int dstW, int dstH, byte[] src, int srcW, int srcH, in DrawCommand command)
{
gate.Wait();
try
{
return inner.TryCompose(dst, dstW, dstH, src, srcW, srcH, command);
}
finally
{
gate.Release();
}
}
public void Dispose() => (inner as IDisposable)?.Dispose();
}
}