Creates a mutex object that can be used to block a thread from accessing mutually exclusive data while another thread is already accessing it.