mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 17:01:24 +12:00
New named_thread template (preview)
Old class named_thread renamed to old_thread It's too hard to move in a single commit
This commit is contained in:
parent
4ef384a161
commit
306f95a9ae
22 changed files with 392 additions and 204 deletions
|
@ -242,7 +242,7 @@ s32 cellMsgDialogClose(f32 delay)
|
|||
{
|
||||
if (auto dlg = manager->get<rsx::overlays::message_dialog>())
|
||||
{
|
||||
thread_ctrl::spawn("cellMsgDialogClose() Thread", [=]
|
||||
thread_ctrl::make_shared("cellMsgDialogClose() Thread", [=]
|
||||
{
|
||||
while (get_system_time() < wait_until)
|
||||
{
|
||||
|
@ -256,7 +256,7 @@ s32 cellMsgDialogClose(f32 delay)
|
|||
}
|
||||
|
||||
dlg->close();
|
||||
});
|
||||
})->detach();
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
@ -269,7 +269,7 @@ s32 cellMsgDialogClose(f32 delay)
|
|||
return CELL_MSGDIALOG_ERROR_DIALOG_NOT_OPENED;
|
||||
}
|
||||
|
||||
thread_ctrl::spawn("cellMsgDialogClose() Thread", [=]()
|
||||
thread_ctrl::make_shared("cellMsgDialogClose() Thread", [=]()
|
||||
{
|
||||
while (dlg->state == MsgDialogState::Open && get_system_time() < wait_until)
|
||||
{
|
||||
|
@ -279,7 +279,7 @@ s32 cellMsgDialogClose(f32 delay)
|
|||
}
|
||||
|
||||
dlg->on_close(CELL_MSGDIALOG_BUTTON_NONE);
|
||||
});
|
||||
})->detach();
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue