Introduction - If you have any usage issues, please Google them yourself
must be a power-of-2. undef to just use 1 mutex.atomic_inc might be overkill here. It may be fine if once in a while we hit a race-condition and two subsequent calls get the same index..