Пространства имён
Варианты
Действия

Thread support library

Материал из cppreference.com
< c

 
 
Библиотека тему поддержки
Потоки
Original:
Threads
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Взаимное исключение
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.
Позвоните раз
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.
Условия переменных
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.
Тема локальной памяти
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.
 
Если макрос постоянной __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.

Содержание

[править] Потоки

Определено в файле <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.
[edit]
создает поток
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.

(функция) [edit]
проверяет два идентификатора относятся к той же нити
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.

(функция) [edit]
получает текущий идентификатор потока
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.

(функция) [edit]
приостанавливает выполнение вызывающего потока для данного периода времени
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.

(функция) [edit]
yields the current time slice
(функция) [edit]
завершает вызывающий поток
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.

(функция) [edit]
отделяет поток
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.

(функция) [edit]
Блоки до завершения потока
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.

(функция) [edit]
указывает на состояние потоков ошибки
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.

(константа) [edit]
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.

(определение типа) [edit]

[править] Взаимное исключение

Определено в файле <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.
[edit]
создает мьютекс
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.

(функция) [edit]
блоки, пока замки мьютекс
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.

(функция) [edit]
Блоки до замки мьютекс или тайм-ауту
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.

(функция) [edit]
Замки мьютекса или возвращается без блокировки, если уже заблокирован
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.

(функция) [edit]
разблокирует мьютекс
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.

(функция) [edit]
разрушает мьютекс
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.

(функция) [edit]
определяет тип мьютекса
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.

(перечисление) [edit]
Позвоните раз
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 [edit]
инициализирует 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.

(константа-макрос) [edit]
вызывает функцию только один раз
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.

(функция) [edit]

[править] Условия переменных

Определено в файле <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.
создает условия переменной
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.

(функция) [edit]
разблокирует один поток заблокирован на переменной условия
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.

(функция) [edit]
разблокирует все темы заблокирован на переменной условия
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.

(функция) [edit]
блоки на переменной условия
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.

(функция) [edit]
блоки на переменной условия, при тайм-аут
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.

(функция) [edit]
разрушает переменной условия
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.

(функция) [edit]

[править] Тема локальной памяти

Определено в файле <threads.h>
Тема местные макро типа
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.

(константа-макрос) [edit]
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.
[edit]
Максимальное количество деструкторов раз называют
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.

(константа-макрос) [edit]
tss_dtor_t function pointer type used for TSS destructor [edit]
creates thread-specific storage pointer with a given destructor
(функция) [edit]
считывает данные из конкретного потока хранения
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.

(функция) [edit]
писать для конкретного потока хранения
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.

(функция) [edit]
освобождает ресурсы, занятые данного конкретного потока указатель
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.

(функция) [edit]