You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What needs to be added is a std::mutex that synchronizes access.
Add std::mutex to class descriptor_cache
Use it in member methods that modify members or access members that could be modified from parallel threads (best synchronize using std::scoped_lock<std::mutex>)
The
avk::descriptor_cache
shall be usable from parallel threads. This is partly already prepared by the means of differentdescriptor_pools
being used from different threads (see:std::unordered_map<std::thread::id, std::vector<std::weak_ptr<descriptor_pool>>> mDescriptorPools;
andavk::descriptor_cache::get_descriptor_pool_for_layouts
).What needs to be added is a
std::mutex
that synchronizes access.std::mutex
toclass descriptor_cache
std::scoped_lock<std::mutex>
)To test this issue, cg-tuwien/Gears-Vk#41 would have to be implemented.
Definition of done:
std::mutex
-based synchronization has been added toavk::descriptor_cache::get_descriptor_pool_for_layouts
.avk::descriptor_cache
and if so, the necessary measures have been taken.descriptor_cache
from parallel threads has been tested (e.g. by using aparallel_invoker
)The text was updated successfully, but these errors were encountered: