Thread support library
Da cppreference.com.
< c
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Se il
__STDC_NO_THREADS__
(C11) macro costante è definita dal compilatore, il <threads.h>
intestazione e tutti i nomi elencati non sono forniti.Original:
If the macro constant
__STDC_NO_THREADS__
(C11) is defined by the compiler, the header <threads.h>
and all of the names listed here are not provided.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.
Indice |
[modifica] Threads
Definizione nell'header
<threads.h> | |
thrd_t
|
un tipo che identifica un thread
Original: a type identifying a thread The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
(C11) |
crea un thread Original: creates a thread The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
verifica se due identificatori riferiscono allo stesso thread Original: checks if two identifiers refer to the same thread The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
ottiene l'identificatore del thread corrente Original: obtains the current thread identifier The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
sospende l'esecuzione del thread chiamante per il periodo di tempo determinato Original: suspends execution of the calling thread for the given period of time The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
yields the current time slice (funzione) |
(C11) |
termina il thread chiamante Original: terminates the calling thread The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
stacca un filo Original: detaches a thread The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
blocca fino a quando un thread viene terminato Original: blocks until a thread terminates The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
indica uno stato di errore thread Original: indicates a thread error status The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (costante) | |
thrd_start_t (C11) |
tipo puntatore a funzione passata thrd_create Original: function pointer type passed to thrd_create The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) |
[modifica] Mutua esclusione
Definizione nell'header
<threads.h> | |
mtx_t
|
mutex identificatore
Original: mutex identifier The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
(C11) |
crea un mutex Original: creates a mutex The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
blocchi fino a bloccare 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. (funzione) |
(C11) |
blocchi fino a quando si blocca un mutex o timeout 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. (funzione) |
(C11) |
blocca un mutex o ritorni senza bloccare, se già bloccata 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. (funzione) |
(C11) |
sblocca un 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. (funzione) |
(C11) |
distrugge un mutex Original: destroys a mutex The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C++11) (C++11) (C++11) |
definisce il tipo di un mutex Original: defines the type of a mutex The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (enum) |
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. | |
once_flag
|
the type of the flag used by call_once |
(C11) |
inizializza una once_flag Original: initializes a once_flag The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
(C11) |
chiama una funzione una sola volta Original: calls a function exactly once The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
[modifica] Condizioni variabili
Definizione nell'header
<threads.h> | |
cnd_t
|
condizione identificatore di variabile
Original: condition variable identifier The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
(C11) |
crea una variabile di condizione Original: creates a condition variable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
sblocca un thread bloccato su una variabile di condizione Original: unblocks one thread blocked on a condition variable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
sblocca tutti i thread bloccati su una variabile di condizione Original: unblocks all threads blocked on a condition variable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
blocchi su una variabile di condizione Original: blocks on a condition variable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
blocchi su una variabile di condizione, con un timeout Original: blocks on a condition variable, with a timeout The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
distrugge una variabile di condizione Original: destroys a condition variable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
[modifica] Thread-local storage
Definizione nell'header
<threads.h> | |
(C11) |
filo macro tipo locale Original: thread local type macro The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
tss_t
|
specifico del thread puntatore stoccaggio
Original: thread-specific storage pointer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
(C11) |
numero massimo di volte distruttori sono chiamati Original: maximum number of times destructors are called The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
tss_dtor_t
|
function pointer type used for TSS destructor |
(C11) |
creates thread-specific storage pointer with a given destructor (funzione) |
(C11) |
legge da filo-specifica stoccaggio Original: reads from thread-specific storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
scrivere a thread specifico di archiviazione Original: write to thread-specific storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
rilascia le risorse utilizzate da un determinato thread specifico puntatore Original: releases the resources held by a given thread-specific pointer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |