Linux x86 fix. Wait for renderer thread to end.

This commit is contained in:
Flyinghead 2018-07-24 17:24:56 +02:00
parent 20de593a88
commit 5960450e76
3 changed files with 9 additions and 2 deletions

View File

@ -506,6 +506,10 @@ void rend_term()
if (fLogFrames)
fclose(fLogFrames);
#if !defined(TARGET_NO_THREADS)
rthd.WaitToEnd();
#endif
}
void rend_vblank()

View File

@ -120,8 +120,10 @@ do_iter:
pop ecx
call rdv_DoInterrupts
mov ecx,eax
# cmp byte ptr [sh4_int_bCpuRun],0
# jz cleanup
mov edx,[p_sh4rcb];
add edx,[cpurun_offset];
cmp dword ptr [edx],0;
jz cleanup;
jmp no_update
cleanup:

View File

@ -132,6 +132,7 @@ naked void DYNACALL ngen_blockcheckfail2(u32 addr)
}
#else
u32 gas_offs=offsetof(Sh4RCB,cntx.jdyn);
u32 cpurun_offset=offsetof(Sh4RCB,cntx.CpuRunning);
void (*ngen_FailedToFindBlock)()=&ngen_FailedToFindBlock_;
#endif
#endif