mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
Emu: Implement BlockingCallFromMainThread
Reduces some copy-paste clutter throughout the project
This commit is contained in:
parent
7842812e24
commit
9cf7a63c77
13 changed files with 95 additions and 223 deletions
|
@ -3,6 +3,7 @@
|
|||
#include <QCoreApplication>
|
||||
|
||||
#include "main_application.h"
|
||||
#include "util/atomic.hpp"
|
||||
|
||||
#include <functional>
|
||||
|
||||
|
@ -29,8 +30,8 @@ private:
|
|||
}
|
||||
|
||||
Q_SIGNALS:
|
||||
void RequestCallFromMainThread(std::function<void()> func);
|
||||
void RequestCallFromMainThread(std::function<void()> func, atomic_t<bool>* wake_up);
|
||||
|
||||
private Q_SLOTS:
|
||||
static void CallFromMainThread(const std::function<void()>& func);
|
||||
static void CallFromMainThread(const std::function<void()>& func, atomic_t<bool>* wake_up);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue