Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EnforceJobResult

Enumerates the possible values returned by AtomicSafetyHandle methods that wait for all jobs accessing the native container associated with the handle to finish.
Read time 1 minuteLast updated 13 days ago

Definition

public enum EnforceJobResult

Remarks

The members of this enum describe whether the job system had to wait for any jobs to finish.
The following methods use this enum as a return type:

Fields

Value

Description

AllJobsAlreadySyncedIndicates that all jobs were already complete at the time of the wait request.
DidSyncRunningJobsIndicates that the job system waited for at least one job to finish.
HandleWasAlreadyDeallocatedIndicates that the job system didn't wait because the AtomicSafetyHandle was invalid, likely because the associated container had already been deallocated.