Pregunta de entrevista de Couchbase

Implement a spin-lock using c++ to demonstrate its usage