mtx_init
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_init( mtx_t* mutex, int type ); |
(depuis C11) | |
Crée un objet mutex nouvelle
type. L'objet pointé par mutex est fixé à un identifiant du mutex nouvellement créé .Original:
Creates a new mutex object with
type. The object pointed to by mutex is set to an identifier of the newly created mutex.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.
type doit avoir l'une des valeurs suivantes:Original:
type must have one of the following values: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.
mtx_plain- un simple, non récursif mutex est créé .Original:mtx_plain- a simple, non-recursive mutex is created.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.mtx_timed- un mutex non-récursif, qui prend en charge temporisation, est créé .Original:mtx_timed- a non-recursive mutex, that supports timeout, is created.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.mtx_plain | mtx_recursive- un mutex récursif est créé .Original:mtx_plain | mtx_recursive- a recursive mutex is created.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.mtx_timed | mtx_recursive- un mutex récursif, qui prend en charge timeout, est créé .Original:mtx_timed | mtx_recursive- a recursive mutex, that supports timeout, is created.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Paramètres
| mutex | - | pointeur vers le mutex à initialiser
Original: pointer to the mutex to initialize The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| type | - | le type du mutex
Original: the type of the mutex 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_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.
You can help to correct and verify the translation. Click here for instructions.