Jump Trading Interview Question

How would you implement a mutex in C++?