mtx_timedlock
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| Déclaré dans l'en-tête <threads.h>
|
||
int mtx_timedlock( mtx_t *restrict mutex, const struct timespec *restrict time_point ); |
(depuis C11) | |
Bloque le thread actuel jusqu'à ce que le mutex pointé par
mutex est verrouillé ou jusqu'à ce que le point de temps TIME_UTC base pointée par time_point a été atteint .Original:
Blocks the current thread until the mutex pointed to by
mutex is locked or until the TIME_UTC based time point pointed to by time_point has been reached.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.
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.
You can help to correct and verify the translation. Click here for instructions.
Le comportement est indéfini si le mutex ne supporte pas délai .
Original:
The behavior is undefined if the mutex does not support timeout.
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.
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. |
| time_point | - | pointeur sur le délai d'attente à attendre
Original: pointer to the timeout time to wait until The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Retourne la valeur
thrd_success en cas de succès, thrd_timedout si le délai d'attente a été atteint avant le mutex est verrouillé, thrd_error si une erreur occurrs .Original:
thrd_success if successful, thrd_timedout if the timeout time has been reached before the mutex is 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.
Voir aussi
(C11) |
bloque jusqu'à verrouille 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. (fonction) |
(C11) |
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) |
(C11) |
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) |