Vixen
02b45cc4
csharp
public interface IJob

A unit of work the scheduler runs once, on whichever thread picks it up.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Implement this on a . The scheduler is generic over the implementing type, so the call to Execute is a direct call on a value in an array of that exact type: no boxing, no delegate, no closure, and no allocation on the path from Schedule``1 to the work running.

The struct is copied into the scheduler when it is scheduled, so mutating your copy afterwards changes nothing. Results come back through whatever the job's fields point at — an array, a NativeArray<T>, a shared counter — not through the struct itself.

Methods (1)

  • void Execute()

    Runs the work.

Used by (16)

  • TouchJobVixen.Benchmarks.Jobs
  • EmptyJobVixen.Core.Threading
  • FlagJobVixen.Core.Threading.Tests
  • ForkJobVixen.Core.Threading.Tests
  • GatedIncrementJobVixen.Core.Threading.Tests
  • GatedThrowingJobVixen.Core.Threading.Tests
  • IncrementJobVixen.Core.Threading.Tests
  • JobSchedulerVixen.Core.Threading
  • NestedJobVixen.Core.Threading.Tests
  • RecordThreadJobVixen.Core.Threading.Tests
  • SelfWaitingJobVixen.Core.Threading.Tests
  • SequentialJobStoreVixen.Core.Threading
  • SequentialJobTypeVixen.Core.Threading
  • SpinJobVixen.Core.Threading.Tests
  • StampJobVixen.Core.Threading.Tests
  • ThrowingJobVixen.Core.Threading.Tests