Table of Contents

Interface Dispatcher.IBatchJob

Namespace
Stride.Core.Threading
Assembly
Stride.Core.dll

An implementation of a job running in batches. Implementing this as a struct improves performance as the JIT would have an easier time inlining the call. Implementing this as a class would provide more utility as this object would be shared across all threads, allowing for interlocked operations and other communication between threads.

public interface Dispatcher.IBatchJob

Methods

Process(int, int)

Execute this job over a range of items

void Process(int start, int endExclusive)

Parameters

start int

the start of the range

endExclusive int

the end of the range, iterate as long as i < endExclusive