- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
UEC++ From Basics to Advanced | M17-005: FThreadSafeBool
This video introduces FThreadSafeBool, a lock-free atomic boolean type built on FThreadSafeCounter. It provides thread-safe read and write operations without requiring a full critical section, making it ideal for flags that control thread execution flow, such as the bRunning flag in a FRunnable Run loop.
The video explores the source code to show how FThreadSafeBool internally uses atomic operations. Though the engine has marked it with a deprecation hint suggesting std::atomic, it remains widely used within the engine itself and is perfectly functional.
We demonstrate converting a FRunnable to use FThreadSafeBool for the Stop signal instead of a plain volatile bool, showing that the atomic guarantees prevent subtle reads of stale values across threads. The lock-free nature means no contention with other threads using locks.
Видео UEC++ From Basics to Advanced | M17-005: FThreadSafeBool канала Huagang Liu
The video explores the source code to show how FThreadSafeBool internally uses atomic operations. Though the engine has marked it with a deprecation hint suggesting std::atomic, it remains widely used within the engine itself and is perfectly functional.
We demonstrate converting a FRunnable to use FThreadSafeBool for the Stop signal instead of a plain volatile bool, showing that the atomic guarantees prevent subtle reads of stale values across threads. The lock-free nature means no contention with other threads using locks.
Видео UEC++ From Basics to Advanced | M17-005: FThreadSafeBool канала Huagang Liu
Комментарии отсутствуют
Информация о видео
7 июля 2026 г. 2:55:46
00:08:08
Другие видео канала









![[UE5]GyraDevLog_018_Increase the combo attacks of melee weapons](https://i.ytimg.com/vi/y1obxOw3AYA/default.jpg)






![[UE5]GyraDevLog_003_Added test code for killing zombies](https://i.ytimg.com/vi/kpd8jHgs8qE/default.jpg)



