Namespace
Varianti

mtx_init

Da cppreference.com.
< c‎ | thread

 
 
Discussione libreria di supporto
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.
Mutua esclusione
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.
Chiama una volta
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.
Condizioni variabili
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.
Thread-local storage
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 );
(dal C11)
Crea un nuovo oggetto mutex con type. L'oggetto puntato da mutex è impostato su un identificatore del mutex appena creato.
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 deve avere uno dei seguenti valori:
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 - una semplice, non ricorsivo mutex è creato.
    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 non-ricorsiva mutex, che supporta il timeout, è creato.
    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 ricorsiva è creato.
    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 ricorsiva, che supporta il timeout, è creato.
    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.

[modifica] Parametri

mutex -
puntatore al mutex da inizializzare
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 -
il tipo del 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.

[modifica] Valore di ritorno

thrd_success caso di successo, altrimenti thrd_error.
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.