rsx: Implement conditional locks

This commit is contained in:
kd-11 2017-07-27 16:29:08 +03:00
parent 40d305b35d
commit 7ab1792ef7
4 changed files with 48 additions and 35 deletions

View file

@ -14,7 +14,7 @@ namespace gl
cached_texture_section* section_to_post = nullptr;
{
std::lock_guard<std::mutex> lock(m_section_mutex);
rsx::conditional_lock<shared_mutex> lock(in_access_violation_handler, m_section_mutex);
for (cached_texture_section &tex : no_access_memory_sections)
{