mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-21 02:45:00 +00:00
core: Switch to std threading primitives
This commit is contained in:
parent
f39744cf62
commit
e2b1b059ed
24 changed files with 98 additions and 329 deletions
|
@ -1,8 +1,10 @@
|
|||
#pragma once
|
||||
|
||||
#include <Core/PS4/HLE/Graphics/graphics_ctx.h>
|
||||
#include <Lib/Threads.h>
|
||||
#include <SDL.h>
|
||||
|
||||
#include <mutex>
|
||||
#include <condition_variable>
|
||||
#include <vector>
|
||||
|
||||
namespace Emu {
|
||||
|
@ -57,9 +59,9 @@ struct VulkanSwapchain {
|
|||
|
||||
struct WindowCtx {
|
||||
HLE::Libs::Graphics::GraphicCtx m_graphic_ctx;
|
||||
Lib::Mutex m_mutex;
|
||||
std::mutex m_mutex;
|
||||
bool m_is_graphic_initialized = false;
|
||||
Lib::ConditionVariable m_graphic_initialized_cond;
|
||||
std::condition_variable m_graphic_initialized_cond;
|
||||
SDL_Window* m_window = nullptr;
|
||||
bool is_window_hidden = true;
|
||||
VkSurfaceKHR m_surface = nullptr;
|
||||
|
@ -69,7 +71,7 @@ struct WindowCtx {
|
|||
|
||||
struct EmuPrivate {
|
||||
EmuPrivate() = default;
|
||||
Lib::Mutex m_mutex;
|
||||
std::mutex m_mutex;
|
||||
HLE::Libs::Graphics::GraphicCtx* m_graphic_ctx = nullptr;
|
||||
void* data1 = nullptr;
|
||||
void* data2 = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue