44#include <vulkan/vulkan_raii.hpp>
61 : m_lock(
handle->GetQueue()->m_mutex)
65 vk::raii::Queue& operator*()
66 {
return *(m_handle->GetQueue()->GetQueue()); }
74 const std::lock_guard<std::recursive_mutex> m_lock;
75 std::shared_ptr<QueueHandle> m_handle;
83 std::shared_ptr<QueueWrapper> Handle;
132 vk::raii::PhysicalDevice* m_phys;
133 std::shared_ptr<vk::raii::Device> m_device;
139 std::vector< std::shared_ptr<QueueInfo> >
m_queues;
142 std::map<QueuePoolID, std::vector< std::shared_ptr<QueueInfo> > >
m_pools;
145 std::map<QueuePoolID, std::string> m_poolNames;
Declaration of QueueWrapper.
Definition AcceleratorBuffer.h:204
Obtains exclusive access to a Vulkan Queue for the duration of its existence, similar to a std::lock_...
Definition QueueManager.h:58
Allocates and hands out std::shared_ptr<QueueHandle> instances for thread-safe access to Vulkan Queue...
Definition QueueManager.h:96
QueuePoolID
List of different queue pools.
Definition QueueManager.h:104
@ QUEUE_POOL_TRANSFER
Dedicated transfer-only queues.
Definition QueueManager.h:118
@ QUEUE_POOL_RENDER
Queues used for graphics and display.
Definition QueueManager.h:106
@ QUEUE_POOL_MISC
Queues used for other miscellaneous stuff like the scope deskew wizard.
Definition QueueManager.h:121
@ QUEUE_POOL_RASTERIZE
Queues used for rasterizing waveforms.
Definition QueueManager.h:109
@ QUEUE_POOL_FILTER
Queues used for the filter graph (compute/transfer only)
Definition QueueManager.h:115
@ QUEUE_POOL_DRIVER
Queues used for instrument drivers (compute/transfer only)
Definition QueueManager.h:112
std::map< QueuePoolID, std::vector< std::shared_ptr< QueueInfo > > > m_pools
Queue pools used for allocation.
Definition QueueManager.h:142
std::shared_ptr< QueueHandle > GetQueueFromPool(QueuePoolID id, std::string name)
Get a queue handle for a specific pool, preferring one that has less contention.
Definition QueueManager.cpp:304
std::mutex m_mutex
Mutex to guard allocations.
Definition QueueManager.h:136
std::vector< std::shared_ptr< QueueInfo > > m_queues
All queues available on the device.
Definition QueueManager.h:139
Definition QueueManager.h:79