mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-06-12 04:29:29 +00:00
deadlock and video fix comments tidied
This commit is contained in:
parent
537412b959
commit
1889560d1f
|
@ -875,6 +875,8 @@ static int present_sdl_video()
|
||||||
SDL_SetRenderDrawColor(sdl_renderer, 0, 0, 0, 0); // Use black
|
SDL_SetRenderDrawColor(sdl_renderer, 0, 0, 0, 0); // Use black
|
||||||
SDL_RenderClear(sdl_renderer); // Clear the display
|
SDL_RenderClear(sdl_renderer); // Clear the display
|
||||||
|
|
||||||
|
// We're about to work with sdl_update_video_rect, so stop other threads from
|
||||||
|
// modifying it!
|
||||||
LOCK_PALETTE;
|
LOCK_PALETTE;
|
||||||
SDL_LockMutex(sdl_update_video_mutex);
|
SDL_LockMutex(sdl_update_video_mutex);
|
||||||
// Convert from the guest OS' pixel format, to the host OS' texture, if necessary.
|
// Convert from the guest OS' pixel format, to the host OS' texture, if necessary.
|
||||||
|
@ -890,11 +892,7 @@ static int present_sdl_video()
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
UNLOCK_PALETTE;
|
UNLOCK_PALETTE; // passed potential deadlock, can unlock palette
|
||||||
|
|
||||||
// We're about to work with sdl_update_video_rect, so stop other threads from
|
|
||||||
// modifying it!
|
|
||||||
// SDL_LockMutex(sdl_update_video_mutex);
|
|
||||||
|
|
||||||
// Update the host OS' texture
|
// Update the host OS' texture
|
||||||
void * srcPixels = (void *)((uint8_t *)host_surface->pixels +
|
void * srcPixels = (void *)((uint8_t *)host_surface->pixels +
|
||||||
|
|
Loading…
Reference in New Issue
Block a user