Please just don't use spinlocks in userland code. It's really not the appropriate mechanism.
Your code will look great in your synthetic benchmarks and then it will end up burning CPU for no good reason in the real world.
Burning CPU is preferable in some industries where latency is all that matters.
Burning CPU is preferable in some industries where latency is all that matters.