mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12:00
Rename CallAfter to CallFromMainThread
This commit is contained in:
parent
2d9f21a2ea
commit
d172b9add6
22 changed files with 63 additions and 63 deletions
|
@ -34,7 +34,7 @@ bool headless_application::Init()
|
|||
void headless_application::InitializeConnects() const
|
||||
{
|
||||
qRegisterMetaType<std::function<void()>>("std::function<void()>");
|
||||
connect(this, &headless_application::RequestCallAfter, this, &headless_application::HandleCallAfter);
|
||||
connect(this, &headless_application::RequestCallFromMainThread, this, &headless_application::CallFromMainThread);
|
||||
}
|
||||
|
||||
/** RPCS3 emulator has functions it desires to call from the GUI at times. Initialize them in here. */
|
||||
|
@ -57,9 +57,9 @@ void headless_application::InitializeCallbacks()
|
|||
|
||||
return false;
|
||||
};
|
||||
callbacks.call_after = [this](std::function<void()> func)
|
||||
callbacks.call_from_main_thread = [this](std::function<void()> func)
|
||||
{
|
||||
RequestCallAfter(std::move(func));
|
||||
RequestCallFromMainThread(std::move(func));
|
||||
};
|
||||
|
||||
callbacks.init_gs_render = []()
|
||||
|
@ -140,7 +140,7 @@ void headless_application::InitializeCallbacks()
|
|||
/**
|
||||
* Using connects avoids timers being unable to be used in a non-qt thread. So, even if this looks stupid to just call func, it's succinct.
|
||||
*/
|
||||
void headless_application::HandleCallAfter(const std::function<void()>& func)
|
||||
void headless_application::CallFromMainThread(const std::function<void()>& func)
|
||||
{
|
||||
func();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue