ngscopeclient 0.1-dev+51fbda87c
Public Member Functions | Protected Attributes | List of all members
QueueLock Class Reference

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
 
QueueLockoperator= (QueueLock const &)=delete
 

Protected Attributes

const std::lock_guard< std::recursive_mutex > m_lock
 
std::shared_ptr< QueueHandlem_handle
 

Detailed Description

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.


The documentation for this class was generated from the following file: