mtx_trylock
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>| Elemento definito nell'header <threads.h>
|
||
int mtx_trylock( mtx_t *mutex ); |
(dal C11) | |
Tenta di bloccare il mutex puntato da
mutex senza bloccare.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.
Parametri
| mutex | - | puntatore al mutex da bloccare
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. |
Valore di ritorno
thrd_success in caso di successo, thrd_busy se il mutex è già stato bloccato, thrd_error se un occurrs errore.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.
Vedi anche
(C11) |
blocchi fino a bloccare 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. (funzione) |
(C11) |
blocchi fino a quando si blocca un mutex o timeout 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. (funzione) |
(C11) |
sblocca 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. (funzione) |