mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
Put set thread name calls behind a Win32 macro.
This commit is contained in:
parent
f1039fcc78
commit
682f8e4396
1 changed files with 6 additions and 2 deletions
|
|
@ -4047,8 +4047,9 @@ static void ProcSetPixelShader(const RenderCommand& cmd)
|
||||||
|
|
||||||
static std::thread g_renderThread([]
|
static std::thread g_renderThread([]
|
||||||
{
|
{
|
||||||
|
#ifdef _WIN32
|
||||||
GuestThread::SetThreadName(GetCurrentThreadId(), "Render Thread");
|
GuestThread::SetThreadName(GetCurrentThreadId(), "Render Thread");
|
||||||
|
#endif
|
||||||
RenderCommand commands[32];
|
RenderCommand commands[32];
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
|
|
@ -4857,7 +4858,9 @@ static moodycamel::BlockingConcurrentQueue<PipelineStateQueueItem> g_pipelineSta
|
||||||
|
|
||||||
static void PipelineCompilerThread()
|
static void PipelineCompilerThread()
|
||||||
{
|
{
|
||||||
|
#ifdef _WIN32
|
||||||
GuestThread::SetThreadName(GetCurrentThreadId(), "Pipeline Compiler Thread");
|
GuestThread::SetThreadName(GetCurrentThreadId(), "Pipeline Compiler Thread");
|
||||||
|
#endif
|
||||||
std::unique_ptr<GuestThreadContext> ctx;
|
std::unique_ptr<GuestThreadContext> ctx;
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
|
|
@ -5508,8 +5511,9 @@ static bool CheckMadeAll(const T& modelData)
|
||||||
|
|
||||||
static void ModelConsumerThread()
|
static void ModelConsumerThread()
|
||||||
{
|
{
|
||||||
|
#ifdef _WIN32
|
||||||
GuestThread::SetThreadName(GetCurrentThreadId(), "Model Consumer Thread");
|
GuestThread::SetThreadName(GetCurrentThreadId(), "Model Consumer Thread");
|
||||||
|
#endif
|
||||||
std::vector<boost::shared_ptr<Hedgehog::Database::CDatabaseData>> localPendingDataQueue;
|
std::vector<boost::shared_ptr<Hedgehog::Database::CDatabaseData>> localPendingDataQueue;
|
||||||
std::unique_ptr<GuestThreadContext> ctx;
|
std::unique_ptr<GuestThreadContext> ctx;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue