mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-28 21:08:04 +03:00
VideoCommon: Use MoveOnlyFunction for AsyncRequests.
This commit is contained in:
parent
e403dee3da
commit
37aa65afc4
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include <queue>
|
#include <queue>
|
||||||
|
|
||||||
#include "Common/Flag.h"
|
#include "Common/Flag.h"
|
||||||
|
#include "Common/Functional.h"
|
||||||
|
|
||||||
struct EfbPokeData;
|
struct EfbPokeData;
|
||||||
class PointerWrap;
|
class PointerWrap;
|
||||||
|
@ -60,7 +61,7 @@ public:
|
||||||
static AsyncRequests* GetInstance() { return &s_singleton; }
|
static AsyncRequests* GetInstance() { return &s_singleton; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
using Event = std::function<void()>;
|
using Event = Common::MoveOnlyFunction<void()>;
|
||||||
|
|
||||||
void QueueEvent(Event&& event);
|
void QueueEvent(Event&& event);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue