Is there any mutex available in the stdlibs?
Searched for mutex in the docs and it looks like it's not available yet. Is there a way I can atomically perform multiple ops or do the following with the atomic package?
I want to perform an increment on an int, followed by a modulo which should round the number back to 0 after a certain limit and return the value.
I want to perform an increment on an int, followed by a modulo which should round the number back to 0 after a certain limit and return the value.
