This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Браузер SDK 2
Лицензирование и типы лицензий
Дополнения (Add-Ons)
Демонстрационные проекты
Samples
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
Унифицированный язык шейдеров UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
Справочник API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

Unigine::ScopedMutexWriterLock Class

Header: #include <UnigineThread.h>

Template class that implements the RAII (Resource Acquisition Is Initialization) pattern to manage mutex locking in a multithreaded environment. This class ensures that a mutex is automatically locked for writing upon construction and unlocked when the object goes out of scope.

This class has following aliases:

Alias Description Type
ScopedWriterSpinLock
ScopedWriterLock
Alias for ScopedMutexWriterLock using RWMutexSpin as the underlying reader-writer mutex. Provides scoped read-locking via spinlock. RWMutexSpin
ScopedWriterSlimLock Alias for ScopedMutexReaderLock using RWMutexSlim as the underlying reader-writer mutex. Provides scoped RAII-style exclusive locking via Windows SRW Lock. RWMutexSlim

ScopedMutexWriterLock Class

Members


ScopedMutexWriterLock ( MutexType& m ) #

Constructor that locks the provided mutex for writing. The lock remains held for the duration of the ScopedMutexWriterLock object's lifetime.

Arguments

  • MutexType& m - A reference to a mutex object to be locked for writing. The mutex must provide lockWrite() and unlockWrite() member functions.

~ScopedMutexWriterLock ( ) #

Destructor that automatically unlocks the mutex when the ScopedMutexWriterLock object goes out of scope.

The information on this page is valid for UNIGINE 2.20 SDK.

Last update: 10.07.2025
Build: ()