Skip to content

Commit

Permalink
Fix winsim logging warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-josi-aws committed Apr 16, 2024
1 parent 2438f6d commit 8331595
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions FreeRTOS-Plus/Demo/Common/Logging/windows/Logging_WinSim.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,9 @@ void vLoggingInit( BaseType_t xLogToStdout,
configASSERT( pvLoggingThread != NULL );

/* Use the cores that are not used by the FreeRTOS tasks. */
if (Win32Thread != 0)
{
SetThreadAffinityMask(Win32Thread, ~0x01u);
SetThreadPriorityBoost(Win32Thread, TRUE);
SetThreadPriority(Win32Thread, THREAD_PRIORITY_IDLE);
}
else
{
configASSERT(0);
}
SetThreadAffinityMask( pvLoggingThread, ~0x01u );
SetThreadPriorityBoost( pvLoggingThread, TRUE );
SetThreadPriority( pvLoggingThread, THREAD_PRIORITY_IDLE );

}
}
Expand Down

0 comments on commit 8331595

Please sign in to comment.