Thread support library
Материал из cppreference.com
< c
|
|
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. |
Если макрос постоянной
__STDC_NO_THREADS__(C11) определяется компилятором, <threads.h> заголовка и все имена, перечисленные здесь не предусмотрено.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.
Содержание |
[править] Потоки
| Определено в файле <threads.h>
| |
thrd_t
|
Тип определении потока
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) |
создает поток 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. (функция) |
| (C11) |
проверяет два идентификатора относятся к той же нити 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. (функция) |
| (C11) |
получает текущий идентификатор потока 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. (функция) |
| (C11) |
приостанавливает выполнение вызывающего потока для данного периода времени 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. (функция) |
| (C11) |
yields the current time slice (функция) |
| (C11) |
завершает вызывающий поток 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. (функция) |
| (C11) |
отделяет поток 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. (функция) |
| (C11) |
Блоки до завершения потока 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. (функция) |
| указывает на состояние потоков ошибки 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. (константа) | |
| thrd_start_t (C11) |
Тип указателя на функцию передается 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. (определение типа) |
[править] Взаимное исключение
| Определено в файле <threads.h>
| |
mtx_t
|
мьютекса идентификатор
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) |
создает мьютекс 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. (функция) |
| (C11) |
блоки, пока замки мьютекс 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. (функция) |
| (C11) |
Блоки до замки мьютекс или тайм-ауту 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. (функция) |
| (C11) |
Замки мьютекса или возвращается без блокировки, если уже заблокирован 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. (функция) |
| (C11) |
разблокирует мьютекс 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. (функция) |
| (C11) |
разрушает мьютекс 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. (функция) |
| (C++11) (C++11) (C++11) |
определяет тип мьютекса 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. (перечисление) |
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) |
инициализирует 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. (константа-макрос) |
| (C11) |
вызывает функцию только один раз 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. (функция) |
[править] Условия переменных
| Определено в файле <threads.h>
| |
cnd_t
|
Условие идентификатор переменной
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) |
создает условия переменной 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. (функция) |
| (C11) |
разблокирует один поток заблокирован на переменной условия 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. (функция) |
| (C11) |
разблокирует все темы заблокирован на переменной условия 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. (функция) |
| (C11) |
блоки на переменной условия 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. (функция) |
| (C11) |
блоки на переменной условия, при тайм-аут 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. (функция) |
| (C11) |
разрушает переменной условия 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. (функция) |
[править] Тема локальной памяти
| Определено в файле <threads.h>
| |
| (C11) |
Тема местные макро типа 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. (константа-макрос) |
tss_t
|
конкретного потока хранения указателей
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) |
Максимальное количество деструкторов раз называют 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. (константа-макрос) |
tss_dtor_t
|
function pointer type used for TSS destructor |
| (C11) |
creates thread-specific storage pointer with a given destructor (функция) |
| (C11) |
считывает данные из конкретного потока хранения 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. (функция) |
| (C11) |
писать для конкретного потока хранения 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. (функция) |
| (C11) |
освобождает ресурсы, занятые данного конкретного потока указатель 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. (функция) |