mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
name some threads
This commit is contained in:
parent
a769dff1d0
commit
6ef9d70701
@ -10,6 +10,7 @@
|
||||
|
||||
#include "Common/Event.h"
|
||||
#include "Common/Flag.h"
|
||||
#include "Common/Thread.h"
|
||||
|
||||
// A thread that executes the given function for every item placed into its queue.
|
||||
|
||||
@ -53,6 +54,8 @@ private:
|
||||
|
||||
void ThreadLoop()
|
||||
{
|
||||
Common::SetCurrentThreadName("WorkQueueThread");
|
||||
|
||||
while (true)
|
||||
{
|
||||
m_wakeup.Wait();
|
||||
|
@ -69,6 +69,8 @@ void DiscordHandler::ShowNewJoinRequest(const std::string& id, const std::string
|
||||
|
||||
void DiscordHandler::Run()
|
||||
{
|
||||
Common::SetCurrentThreadName("DiscordHandler");
|
||||
|
||||
while (!m_stop_requested.IsSet())
|
||||
{
|
||||
Discord::CallPendingCallbacks();
|
||||
|
@ -134,6 +134,8 @@ static void HandleFrameStepHotkeys()
|
||||
|
||||
void HotkeyScheduler::Run()
|
||||
{
|
||||
Common::SetCurrentThreadName("HotkeyScheduler");
|
||||
|
||||
while (!m_stop_requested.IsSet())
|
||||
{
|
||||
Common::SleepCurrentThread(1000 / 60);
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "Common/Event.h"
|
||||
#include "Common/Logging/Log.h"
|
||||
#include "Common/ScopeGuard.h"
|
||||
#include "Common/Thread.h"
|
||||
#include "InputCommon/ControllerInterface/DInput/DInput.h"
|
||||
#include "InputCommon/ControllerInterface/XInput/XInput.h"
|
||||
|
||||
@ -43,6 +44,8 @@ void ciface::Win32::Init(void* hwnd)
|
||||
std::promise<HWND> message_window_promise;
|
||||
|
||||
s_thread = std::thread([&message_window_promise] {
|
||||
Common::SetCurrentThreadName("ciface::Win32 Message Loop");
|
||||
|
||||
HWND message_window = nullptr;
|
||||
Common::ScopeGuard promise_guard([&] { message_window_promise.set_value(message_window); });
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
#include "Common/Assert.h"
|
||||
#include "Common/MsgHandler.h"
|
||||
#include "Common/Thread.h"
|
||||
|
||||
#include "VideoBackends/Vulkan/VulkanContext.h"
|
||||
|
||||
@ -185,6 +186,8 @@ bool CommandBufferManager::CreateSubmitThread()
|
||||
{
|
||||
m_submit_loop = std::make_unique<Common::BlockingLoop>();
|
||||
m_submit_thread = std::thread([this]() {
|
||||
Common::SetCurrentThreadName("Vulkan CommandBufferManager SubmitThread");
|
||||
|
||||
m_submit_loop->Run([this]() {
|
||||
PendingCommandBufferSubmit submit;
|
||||
{
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include <thread>
|
||||
#include "Common/Assert.h"
|
||||
#include "Common/Logging/Log.h"
|
||||
#include "Common/Thread.h"
|
||||
|
||||
namespace VideoCommon
|
||||
{
|
||||
@ -192,6 +193,8 @@ void AsyncShaderCompiler::WorkerThreadExit(void* param)
|
||||
|
||||
void AsyncShaderCompiler::WorkerThreadEntryPoint(void* param)
|
||||
{
|
||||
Common::SetCurrentThreadName("AsyncShaderCompiler Worker");
|
||||
|
||||
// Initialize worker thread with backend-specific method.
|
||||
if (!WorkerThreadInitWorkerThread(param))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user