mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
PINE: Give the server thread a name
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "Elfheader.h"
|
||||
#include "PINE.h"
|
||||
#include "VMManager.h"
|
||||
#include "common/Threading.h"
|
||||
|
||||
#include <atomic>
|
||||
#include <cstdio>
|
||||
@@ -392,6 +393,8 @@ bool PINEServer::AcceptClient()
|
||||
|
||||
void PINEServer::MainLoop()
|
||||
{
|
||||
Threading::SetNameOfCurrentThread("PINE Server");
|
||||
|
||||
while (!m_end.load(std::memory_order_acquire))
|
||||
{
|
||||
if (!AcceptClient())
|
||||
|
||||
Reference in New Issue
Block a user