safety | The AtomicSafetyHandle returned when invoking the Create method. |
sentinel | The DisposeSentinel to clear. |
Releases the AtomicSafetyHandle
and clears the DisposeSentinel
.
If the AtomicSafetyHandle
can't be released, which usually happens either because a job is accessing the data or because the handle
has already been released, an exception is thrown.