mutex::lock Method (STL)
Blocks the calling thread until the thread obtains ownership of the mutex.
void lock();
Remarks
If the calling thread already owns the mutex, the behavior is undefined.
Requirements
Header: mutex
Namespace: std
Este browser já não é suportado.
Atualize para o Microsoft Edge para tirar partido das mais recentes funcionalidades, atualizações de segurança e de suporte técnico.
Blocks the calling thread until the thread obtains ownership of the mutex.
void lock();
If the calling thread already owns the mutex, the behavior is undefined.
Header: mutex
Namespace: std