Table of Contents

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

job T

The job to run.

totalIterations int

The total number of iterations.

ctx JobExecutionContext

The job execution context.

Type Parameters

T

The 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

job T

The job to run.

totalIterations int

The total number of iterations.

ctx JobExecutionContext

The job execution context.

Type Parameters

T

The type of the job.