l4 handle

This commit is contained in:
Youmu Liu
2026-03-09 18:14:49 +08:00
parent ae8238fca2
commit d97fb1dd90
12 changed files with 695 additions and 376 deletions
@@ -2,8 +2,8 @@
// -----------------------------------------------------------------------
// file="L4.CommandQueue"
// Project: StgSharp
// AuthorGroup: Nitload Space
// Copyright (c) Nitload Space. All rights reserved.
// AuthorGroup: Nitload
// Copyright (c) Nitload. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@@ -37,7 +37,7 @@ namespace StgSharp.HighPerformance.Memory
public unsafe partial class L4
{
private CommandQueue _commandQueue;
private readonly CommandQueue _commandQueue;
private struct CommandQueue
{
@@ -56,7 +56,9 @@ namespace StgSharp.HighPerformance.Memory
/// <returns>
/// True if there is a command to execute, otherwise false
/// </returns>
public bool TryDequeue(out nint command)
public bool TryDequeue(
out nint command
)
{
if (_curRead >= 64)
{