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
Den här webbläsaren stöds inte längre.
Uppgradera till Microsoft Edge och dra nytta av de senaste funktionerna och säkerhetsuppdateringarna, samt teknisk support.
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