Pergunta de entrevista da empresa Jump Trading

How would you implement a mutex in C++?