Table of Contents

Class IJobExtensions

Namespace
Misaki.HighPerformance.Jobs
Assembly
Misaki.HighPerformance.Jobs.dll
public static class IJobExtensions
Inheritance
IJobExtensions
Inherited Members

Methods

RunRef<T>(ref T, 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, ref readonly JobExecutionContext ctx) where T : struct, IJob

Parameters

job T

The job to run.

ctx JobExecutionContext

The job execution context.

Type Parameters

T

The type of the job.

Run<T>(T, ref readonly JobExecutionContext)

Runs the job in the calling thread, blocking until the job is complete.

public static void Run<T>(this T job, ref readonly JobExecutionContext ctx) where T : IJob

Parameters

job T

The job to run.

ctx JobExecutionContext

The job execution context.

Type Parameters

T

The type of the job.