mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-08 16:01:19 +12:00
Update thread names (#1120)
This commit is contained in:
parent
731713de3a
commit
eaa82817dd
20 changed files with 29 additions and 12 deletions
|
@ -934,7 +934,7 @@ std::optional<glm::ivec2> InputManager::get_right_down_mouse_info(bool* is_pad)
|
|||
|
||||
void InputManager::update_thread()
|
||||
{
|
||||
SetThreadName("InputManager::update_thread");
|
||||
SetThreadName("Input_update");
|
||||
while (!m_update_thread_shutdown.load(std::memory_order::relaxed))
|
||||
{
|
||||
std::shared_lock lock(m_mutex);
|
||||
|
|
|
@ -250,7 +250,7 @@ MotionSample DSUControllerProvider::get_motion_sample(uint8_t index) const
|
|||
|
||||
void DSUControllerProvider::reader_thread()
|
||||
{
|
||||
SetThreadName("DSUControllerProvider::reader_thread");
|
||||
SetThreadName("DSU-reader");
|
||||
bool first_read = true;
|
||||
while (m_running.load(std::memory_order_relaxed))
|
||||
{
|
||||
|
@ -383,7 +383,7 @@ void DSUControllerProvider::reader_thread()
|
|||
|
||||
void DSUControllerProvider::writer_thread()
|
||||
{
|
||||
SetThreadName("DSUControllerProvider::writer_thread");
|
||||
SetThreadName("DSU-writer");
|
||||
while (m_running.load(std::memory_order_relaxed))
|
||||
{
|
||||
std::unique_lock lock(m_writer_mutex);
|
||||
|
|
|
@ -124,7 +124,7 @@ MotionSample SDLControllerProvider::motion_sample(int diid)
|
|||
|
||||
void SDLControllerProvider::event_thread()
|
||||
{
|
||||
SetThreadName("SDLControllerProvider::event_thread");
|
||||
SetThreadName("SDL_events");
|
||||
while (m_running.load(std::memory_order_relaxed))
|
||||
{
|
||||
SDL_Event event{};
|
||||
|
|
|
@ -143,7 +143,7 @@ WiimoteControllerProvider::WiimoteState WiimoteControllerProvider::get_state(siz
|
|||
|
||||
void WiimoteControllerProvider::reader_thread()
|
||||
{
|
||||
SetThreadName("WiimoteControllerProvider::reader_thread");
|
||||
SetThreadName("Wiimote-reader");
|
||||
std::chrono::steady_clock::time_point lastCheck = {};
|
||||
while (m_running.load(std::memory_order_relaxed))
|
||||
{
|
||||
|
@ -878,7 +878,7 @@ void WiimoteControllerProvider::set_motion_plus(size_t index, bool state)
|
|||
|
||||
void WiimoteControllerProvider::writer_thread()
|
||||
{
|
||||
SetThreadName("WiimoteControllerProvider::writer_thread");
|
||||
SetThreadName("Wiimote-writer");
|
||||
while (m_running.load(std::memory_order_relaxed))
|
||||
{
|
||||
std::unique_lock writer_lock(m_writer_mutex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue