DolphinQt2/Host: cleanup

This commit is contained in:
Michael Maltese
2017-07-13 12:58:26 -07:00
parent 8e55374662
commit ebeac18472
2 changed files with 8 additions and 20 deletions

View File

@ -4,9 +4,8 @@
#pragma once
#include <QMutex>
#include <QObject>
#include <QSize>
#include <atomic>
// Singleton that talks to the Core via the interface defined in Core/Host.h.
// Because Host_* calls might come from different threads than the MainWindow,
@ -35,11 +34,9 @@ signals:
void RequestRenderSize(int w, int h);
private:
Host() {}
static Host* m_instance;
QMutex m_lock;
Host();
void* m_render_handle;
bool m_render_focus;
bool m_render_fullscreen;
std::atomic<void*> m_render_handle;
std::atomic<bool> m_render_focus;
std::atomic<bool> m_render_fullscreen;
};