atomic_flag_test_and_set |
Test et fixe le drapeau atomique |
|---|---|
| OpenCL | |
Syntaxe
| bool atomic_flag_test_and_set(volatile __global atomic_flag *object) |
| bool atomic_flag_test_and_set(volatile __local atomic_flag *object) |
| bool atomic_flag_test_and_set(volatile atomic_flag *object) |
Description
Cette fonction permet de définir un atomic_flag à vrai et retourne sa valeur précédente de manière atomique.
Dernière mise à jour : Mardi, le 8 Juillet 2025