#3322: remove useless struct

This commit is contained in:
Günter Obiltschnig 2021-06-23 08:52:41 +02:00
parent a690c13df8
commit 9017c36884

View File

@ -107,10 +107,7 @@ void ThreadImpl::setPriorityImpl(int prio)
_pData->policy = SCHED_OTHER;
if (isRunningImpl())
{
struct sched_param par; struct MyStruct
{
};
struct sched_param par;
par.sched_priority = mapPrio(_pData->prio, SCHED_OTHER);
if (pthread_setschedparam(_pData->thread, SCHED_OTHER, &par))
throw SystemException("cannot set thread priority");