Turn all mutexes into critical sections
Removing all win32 mutexes and turning them into critical sections, since mutexes in win32 are meant generally for inter process communication, tend to be slower, and aren't really needed for current purposes. Critical sections are roughly equivalent to std::mutex in the c++ stl.
This commit is contained in:
@@ -646,13 +646,13 @@ skip_draw:
|
||||
if (voodoo->line == voodoo->v_disp)
|
||||
{
|
||||
int force_blit = 0;
|
||||
thread_wait_light_mutex(voodoo->force_blit_mutex);
|
||||
thread_wait_mutex(voodoo->force_blit_mutex);
|
||||
if(voodoo->force_blit_count) {
|
||||
force_blit = 1;
|
||||
if(--voodoo->force_blit_count < 0)
|
||||
voodoo->force_blit_count = 0;
|
||||
}
|
||||
thread_release_light_mutex(voodoo->force_blit_mutex);
|
||||
thread_release_mutex(voodoo->force_blit_mutex);
|
||||
|
||||
if (voodoo->dirty_line_high > voodoo->dirty_line_low || force_blit)
|
||||
svga_doblit(0, voodoo->v_disp, voodoo->h_disp, voodoo->v_disp-1, voodoo->svga);
|
||||
|
||||
Reference in New Issue
Block a user