# EnforceJobResult

> Enumerates the possible values returned by AtomicSafetyHandle methods that wait for all jobs accessing the native container associated with the handle to finish.

## Definition

* **Type:** Enum
* **Namespace:** [Unity.Collections.LowLevel.Unsafe](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
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:

* [AtomicSafetyHandle.EnforceAllBufferJobsHaveCompleted](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle/enforceallbufferjobshavecompleted.md)

* [AtomicSafetyHandle.EnforceAllBufferJobsHaveCompletedAndDisableReadWrite](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle/enforceallbufferjobshavecompletedanddisablereadwrite.md)

* [AtomicSafetyHandle.EnforceAllBufferJobsHaveCompletedAndRelease](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle/enforceallbufferjobshavecompletedandrelease.md).

## Fields

| Value                                                                                                                                            | Description                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AllJobsAlreadySynced](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/enforcejobresult/alljobsalreadysynced.md)               | Indicates that all jobs were already complete at the time of the wait request.                                                                              |
| [DidSyncRunningJobs](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/enforcejobresult/didsyncrunningjobs.md)                   | Indicates that the job system waited for at least one job to finish.                                                                                        |
| [HandleWasAlreadyDeallocated](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/enforcejobresult/handlewasalreadydeallocated.md) | Indicates that the job system didn't wait because the AtomicSafetyHandle was invalid, likely because the associated container had already been deallocated. |
