mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
CHECK_EMU_STATUS, autojoin_thread_t
This commit is contained in:
parent
8f9e1100c8
commit
3064cf8101
28 changed files with 145 additions and 179 deletions
|
@ -2456,14 +2456,16 @@ void RSXThread::Task()
|
|||
|
||||
m_last_flip_time = get_system_time() - 1000000;
|
||||
|
||||
thread_t vblank(WRAP_EXPR("VBlank thread"), [this]()
|
||||
autojoin_thread_t vblank(WRAP_EXPR("VBlank Thread"), [this]()
|
||||
{
|
||||
const u64 start_time = get_system_time();
|
||||
|
||||
m_vblank_count = 0;
|
||||
|
||||
while (joinable() && !Emu.IsStopped())
|
||||
while (joinable())
|
||||
{
|
||||
CHECK_EMU_STATUS;
|
||||
|
||||
if (get_system_time() - start_time > m_vblank_count * 1000000 / 60)
|
||||
{
|
||||
m_vblank_count++;
|
||||
|
@ -2567,8 +2569,6 @@ void RSXThread::Task()
|
|||
});
|
||||
}
|
||||
|
||||
LOG_NOTICE(RSX, "RSX thread ended");
|
||||
|
||||
OnExitThread();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue