atomic-inc-fetch
ErrorsCollection

atomic-inc-fetch

Synthesised documentation from type/atomicint

From type/atomicint

See Original text in context

multi sub atomic-inc-fetch(atomicint $ is rw)

Performs an atomic increment on a native integer. This will be performed using hardware-provided atomic operations. Since the operation is atomic, it is safe to use without acquiring a lock. Returns the value resulting from the increment. Overflow will wrap around silently.