ngscopeclient 0.1-dev+51fbda87c
|
Obtains exclusive access to a Vulkan Queue for the duration of its existence, similar to a std::lock_guard. More...
#include <QueueManager.h>
Public Member Functions | |
QueueLock (std::shared_ptr< QueueHandle > handle) | |
vk::raii::Queue & | operator* () |
QueueLock (QueueLock const &)=delete | |
QueueLock & | operator= (QueueLock const &)=delete |
Protected Attributes | |
const std::lock_guard< std::recursive_mutex > | m_lock |
std::shared_ptr< QueueHandle > | m_handle |
Obtains exclusive access to a Vulkan Queue for the duration of its existence, similar to a std::lock_guard.
Use this when you need access to the vk::raii::Queue& directly. Lock is released upon destruction.