ModularM
Modular16mo ago
65 replies
sazid

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.
Was this page helpful?