Class IJobParallelForExtensions
- Namespace
- Misaki.HighPerformance.Jobs
- Assembly
- Misaki.HighPerformance.Jobs.dll
public static class IJobParallelForExtensions
- Inheritance
-
IJobParallelForExtensions
- Inherited Members
Methods
RunRef<T>(ref T, int, ref readonly JobExecutionContext)
Runs the job by reference in the calling thread, blocking until the job is complete.
public static void RunRef<T>(this ref T job, int totalIterations, ref readonly JobExecutionContext ctx) where T : struct, IJobParallelFor
Parameters
jobTThe job to run.
totalIterationsintThe total number of iterations.
ctxJobExecutionContextThe job execution context.
Type Parameters
TThe type of the job.
Run<T>(T, int, ref readonly JobExecutionContext)
Runs the job in the calling thread, blocking until the job is complete.
public static void Run<T>(this T job, int totalIterations, ref readonly JobExecutionContext ctx) where T : IJobParallelFor
Parameters
jobTThe job to run.
totalIterationsintThe total number of iterations.
ctxJobExecutionContextThe job execution context.
Type Parameters
TThe type of the job.