Espacios de nombres
Variantes

atomic_flag_test_and_set, atomic_flag_test_and_set_explicit

De cppreference.com
< c | atomic
Definido en el archivo de encabezado <stdatomic.h>
_Bool atomic_flag_test_and_set( volatile atomic_flag* obj );
(1) (desde C11)
_Bool atomic_flag_test_and_set_explicit( volatile atomic_flag* obj, memory_order order );
(2) (desde C11)
Atómicamente cambia el estado de un atomic_flag apuntado por obj para establecer (true) y devuelve el valor anterior. La primera versión de memoria de acuerdo con las órdenes accede memory_order_seq_cst, la segunda versión de la memoria de órdenes de acceso de acuerdo con order .
Original:
Atomically changes the state of a atomic_flag pointed to by obj to set (true) and returns the previous value. The first version orders memory accesses according to memory_order_seq_cst, the second version orders memory accesses according to order.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parámetros

obj -
puntero al objeto atómico bandera modificar
Original:
pointer to the atomic flag object to modify
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
order -
la sincronización de la memoria de ordenación para esta operación: todos los valores están permitidos
Original:
the memory synchronization ordering for this operation: all values are permitted
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valor de retorno

El valor anterior en poder de la bandera atómica apuntada por obj .
Original:
The previous value held by the atomic flag pointed to by obj.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Ver también

establece un atomic_flag como falso
Original:
sets an atomic_flag to false
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [editar]
Documentación de C++ para atomic_flag_test_and_set, atomic_flag_test_and_set_explicit
Morty Proxy This is a proxified and sanitized view of the page, visit original site.