mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 17:11:23 +00:00
Use std::invoke in cpu_thread::suspend_all
This commit is contained in:
parent
3bddba0c7a
commit
40558e7ac1
@ -144,7 +144,7 @@ public:
|
||||
{
|
||||
suspend_work work{&op, nullptr, [](void* func, void*)
|
||||
{
|
||||
(*static_cast<F*>(func))();
|
||||
std::invoke(*static_cast<F*>(func));
|
||||
}};
|
||||
|
||||
work.push(_this);
|
||||
@ -156,7 +156,7 @@ public:
|
||||
|
||||
suspend_work work{&op, &result, [](void* func, void* res_buf)
|
||||
{
|
||||
*static_cast<std::invoke_result_t<F>*>(res_buf) = (*static_cast<F*>(func))();
|
||||
*static_cast<std::invoke_result_t<F>*>(res_buf) = std::invoke(*static_cast<F*>(func));
|
||||
}};
|
||||
|
||||
work.push(_this);
|
||||
|
Loading…
Reference in New Issue
Block a user