mtx_trylock
De cppreference.com
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
Definido en el archivo de encabezado <threads.h>
|
||
int mtx_trylock( mtx_t *mutex ); |
(desde C11) | |
Intenta bloquear el mutex apuntado por
mutex
sin bloquear .Original:
Tries to lock the mutex pointed to by
mutex
without blocking.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Parámetros
mutex | - | puntero a la exclusión mutua para bloquearlo
Original: pointer to the mutex to lock The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Valor de retorno
thrd_success si tiene éxito, thrd_busy si el mutex ya se ha bloqueado, thrd_error si un occurrs error .
Original:
thrd_success if successful, thrd_busy if the mutex has already been locked, thrd_error if an error occurrs.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Ver también
(C11) |
bloquea hasta que cierres un mutex Original: blocks until locks a mutex The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
(C11) |
bloquea hasta que quede un mutex o tiempo de espera Original: blocks until locks a mutex or times out The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
(C11) |
desbloquea un mutex Original: unlocks a mutex The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |