Build fix for mac os

This commit is contained in:
mjbudd77 2020-11-27 23:48:57 -05:00
parent d5d6b32787
commit ab31c760d5
1 changed files with 2 additions and 2 deletions

View File

@ -1885,7 +1885,7 @@ int consoleWin_t::getSchedParam( int &policy, int &priority )
#elif defined(__APPLE__)
struct sched_param p;
if ( pthread_getschedparam( pself, &policy, &p ) )
if ( pthread_getschedparam( pthread_self(), &policy, &p ) )
{
perror("GUI thread pthread_getschedparam error: ");
ret = -1;
@ -1936,7 +1936,7 @@ int consoleWin_t::setSchedParam( int policy, int priority )
}
p.sched_priority = priority;
if ( ::pthread_setschedparam( pself, policy, &p ) != 0 )
if ( ::pthread_setschedparam( pthread_self(), policy, &p ) != 0 )
{
perror("GUI thread pthread_setschedparam error: ");
}