Espaces de noms
Variantes
Affichages
Actions

mtx_lock

De cppreference.com
< c‎ | thread

 
 
Bibliothèque de support fil
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.
L'exclusion mutuelle
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.
Appelez fois
Original:
Call once
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Les variables de condition
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.
Stockage local des threads
Original:
Thread-local storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Defined in header <threads.h>
int mtx_lock( mtx_t* mutex );
(depuis C11)
Bloque le thread actuel jusqu'à ce que le mutex pointé par mutex est verrouillé .
Original:
Blocks the current thread until the mutex pointed to by mutex is locked.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Le comportement est indéfini si le thread actuel a déjà verrouillé le mutex et le mutex n'est pas récursif .
Original:
The behavior is undefined if the current thread has already locked the mutex and the mutex is not recursive.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Paramètres

mutex -
pointeur vers le mutex pour verrouiller
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.

[modifier] Retourne la valeur

thrd_success en cas de succès, thrd_error autrement .
Original:
thrd_success if successful, thrd_error otherwise.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Voir aussi

bloque jusqu'à verrouille un mutex ou arrive à expiration
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.

(fonction) [edit]
verrouille un mutex ou retourne sans bloquer si elle est déjà verrouillé
Original:
locks a mutex or returns without blocking if already locked
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction) [edit]
déverrouille le 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.

(fonction) [edit]