mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Emit warning if priority change failed.
This commit is contained in:
parent
2240fd3b0c
commit
8383682306
@ -1112,7 +1112,7 @@ void SysTraceWorker( void* ptr )
|
|||||||
SetThreadName( "Tracy Sampling" );
|
SetThreadName( "Tracy Sampling" );
|
||||||
InitRpmalloc();
|
InitRpmalloc();
|
||||||
sched_param sp = { 5 };
|
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<s_numBuffers; i++ ) s_ring[i].Enable();
|
for( int i=0; i<s_numBuffers; i++ ) s_ring[i].Enable();
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user