Espaces de noms
Variantes
Affichages
Actions

mtx_init

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_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.
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.
  • 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.

[modifier] 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.

[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.