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
Ezt a böngészőt már nem támogatjuk.
Frissítsen a Microsoft Edge-re, hogy kihasználhassa a legújabb funkciókat, a biztonsági frissítéseket és a technikai támogatást.
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