namespace Misaki.HighPerformance.Jobs; /// /// Represents a job that performs a single unit of work. /// public interface IJob { /// /// Executes the job logic. /// /// The index of the thread executing the job, useful for thread-specific operations. void Execute(int threadIndex); } /// /// Represents a job that performs the same operation for a set of items, executed in parallel. /// public interface IJobParallelFor { /// /// Executes the job for a single item at the given index. /// /// The index of the item to process. /// The index of the thread executing the job, useful for thread-specific operations. void Execute(int loopIndex, int threadIndex); }