1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

overlays: remove unused threadpool

This commit is contained in:
Nekotekina 2020-02-25 22:56:50 +03:00
parent 144c20649f
commit 982856e70d
2 changed files with 2 additions and 19 deletions

View File

@ -1,6 +1,6 @@
#include "stdafx.h"
#include "overlays.h"
#include "../GSRender.h"
#include "../GSRender.h"
#include "Input/pad_thread.h"
LOG_CHANNEL(overlays);
@ -152,25 +152,11 @@ namespace rsx
// Unreachable
return 0;
}
void user_interface::close(bool use_callback)
{
// Force unload
exit.release(true);
{
reader_lock lock(m_threadpool_mutex);
for (auto& worker : m_workers)
{
if (std::this_thread::get_id() != worker.get_id() && worker.joinable())
{
worker.join();
}
else
{
worker.detach();
}
}
}
pad::SetIntercepted(false);

View File

@ -79,9 +79,6 @@ namespace rsx
std::function<void(s32 status)> on_close;
shared_mutex m_threadpool_mutex;
std::list<std::thread> m_workers;
public:
s32 return_code = CELL_OK;