From 83836823063e3c328538496576782701e4793a1c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 16 Jun 2022 14:23:42 +0200 Subject: [PATCH] Emit warning if priority change failed. --- client/TracySysTrace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/TracySysTrace.cpp b/client/TracySysTrace.cpp index 260fcc40..d173fec7 100644 --- a/client/TracySysTrace.cpp +++ b/client/TracySysTrace.cpp @@ -1112,7 +1112,7 @@ void SysTraceWorker( void* ptr ) SetThreadName( "Tracy Sampling" ); InitRpmalloc(); sched_param sp = { 5 }; - pthread_setschedparam( pthread_self(), SCHED_FIFO, &sp ); + if( pthread_setschedparam( pthread_self(), SCHED_FIFO, &sp ) != 0 ) TracyDebug( "Failed to increase SysTraceWorker thread priority!\n" ); for( int i=0; i