Espacios de nombres
Variantes
Acciones

std::lock_guard::lock_guard

De cppreference.com
< cpp‎ | thread‎ | lock guard

 
 
Tema Biblioteca de ayuda
Threads
Original:
Threads
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
this_thread espacio de nombres
Original:
this_thread namespace
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
Exclusión mutua
Original:
Mutual exclusion
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Gestión de bloqueos genérico
Original:
Generic lock management
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Las variables de condición
Original:
Condition variables
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Futuros
Original:
Futures
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
(C++11)
 
std::lock_guard
Las funciones miembro
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
lock_guard::lock_guard
 
explicit lock_guard( mutex_type& m );
(1) (desde C++11)
lock_guard( mutex_type& m, std::adopt_lock_t t );
(2) (desde C++11)
Adquiere la propiedad del mutex dado m .
Original:
Acquires ownership of the given mutex m.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Si m no es un mutex recursivo, requiere que el subproceso actual no m propio. Efectivamente llama m.lock() .
Original:
If m is not a recursive mutex, requires that the current thread does not own m. Effectively calls m.lock().
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Requiere que el hilo actual es propietario de m .
Original:
Requires that the current thread owns m.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
El comportamiento no está definido si m se destruye antes de que el objeto lock_guard es .
Original:
The behavior is undefined if m is destroyed before the lock_guard object is.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Parámetros

m -
mutex para adquirir el dominio de
Original:
mutex to acquire ownership of
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
t -
parámetro variable utilizada para seleccionar sin bloqueo versión del constructor
Original:
tag parameter used to select non-locking version of the constructor
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.