mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
Remove "thread_ctrl::spawn"
This commit is contained in:
parent
18db020b93
commit
8b4b859091
@ -286,13 +286,6 @@ public:
|
|||||||
|
|
||||||
// Sets the preferred affinity mask for this thread
|
// Sets the preferred affinity mask for this thread
|
||||||
static void set_thread_affinity_mask(u64 mask);
|
static void set_thread_affinity_mask(u64 mask);
|
||||||
|
|
||||||
// Spawn a detached named thread
|
|
||||||
template <typename F>
|
|
||||||
[[deprecated]] static void spawn(std::string_view name, F&& func)
|
|
||||||
{
|
|
||||||
new named_thread<F>(thread_state::detached, name, std::forward<F>(func));
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Derived from the callable object Context, possibly a lambda
|
// Derived from the callable object Context, possibly a lambda
|
||||||
|
@ -187,7 +187,7 @@ namespace rsx
|
|||||||
fade_animation.duration = 0.5f;
|
fade_animation.duration = 0.5f;
|
||||||
fade_animation.active = true;
|
fade_animation.active = true;
|
||||||
|
|
||||||
thread_ctrl::spawn("osk input thread", [this]
|
std::lock_guard{m_threadpool_mutex}, m_workers.emplace_back([this]
|
||||||
{
|
{
|
||||||
if (auto error = run_input_loop())
|
if (auto error = run_input_loop())
|
||||||
{
|
{
|
||||||
|
@ -497,7 +497,7 @@ namespace rsx
|
|||||||
|
|
||||||
vblank_count = 0;
|
vblank_count = 0;
|
||||||
|
|
||||||
thread_ctrl::spawn("VBlank Thread", [this]()
|
auto vblank_body = [this]()
|
||||||
{
|
{
|
||||||
// See sys_timer_usleep for details
|
// See sys_timer_usleep for details
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
@ -561,9 +561,11 @@ namespace rsx
|
|||||||
|
|
||||||
thread_ctrl::wait_for(100);
|
thread_ctrl::wait_for(100);
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
|
||||||
thread_ctrl::spawn("RSX Decompiler Thread", [this]
|
g_fxo->init<named_thread<decltype(vblank_body)>>("VBlank Thread", std::move(vblank_body));
|
||||||
|
|
||||||
|
auto decomp_body = [this]
|
||||||
{
|
{
|
||||||
if (g_cfg.video.disable_asynchronous_shader_compiler)
|
if (g_cfg.video.disable_asynchronous_shader_compiler)
|
||||||
{
|
{
|
||||||
@ -594,7 +596,9 @@ namespace rsx
|
|||||||
}
|
}
|
||||||
|
|
||||||
on_decompiler_exit();
|
on_decompiler_exit();
|
||||||
});
|
};
|
||||||
|
|
||||||
|
g_fxo->init<named_thread<decltype(decomp_body)>>("RSX Decompiler Thread", std::move(decomp_body));
|
||||||
|
|
||||||
// Raise priority above other threads
|
// Raise priority above other threads
|
||||||
thread_ctrl::set_native_priority(1);
|
thread_ctrl::set_native_priority(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user