mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Backport Vanfanel mutex fix
This commit is contained in:
parent
6181306e5d
commit
61d6f69aa8
@ -239,11 +239,11 @@ static void vsync_callback(DISPMANX_UPDATE_HANDLE_T u, void *data)
|
||||
slock_unlock(page->dispvars->pending_mutex);
|
||||
|
||||
/* We mark as free the page that was visible until now */
|
||||
if (page->dispvars->currentPage != NULL)
|
||||
if (page->dispvars->currentPage)
|
||||
{
|
||||
slock_lock(page->page_used_mutex);
|
||||
slock_lock(page->dispvars->currentPage->page_used_mutex);
|
||||
page->dispvars->currentPage->used = false;
|
||||
slock_unlock(page->page_used_mutex);
|
||||
slock_unlock(page->dispvars->currentPage->page_used_mutex);
|
||||
}
|
||||
|
||||
/* The page on which we just issued the flip that
|
||||
|
Loading…
x
Reference in New Issue
Block a user