Prechádzať zdrojové kódy

change: 降低bsp/win32的进程优先级,即使挂了也不能影响整个操作系统

Wendal Chen 4 rokov pred
rodič
commit
9de4bf5b2a

+ 1 - 1
components/freertos/portable/MSVC-MingW/port.c

@@ -277,7 +277,7 @@ SYSTEM_INFO xSystemInfo;
 
 
 		/* The highest priority class is used to [try to] prevent other Windows
 		/* The highest priority class is used to [try to] prevent other Windows
 		activity interfering with FreeRTOS timing too much. */
 		activity interfering with FreeRTOS timing too much. */
-		if( SetPriorityClass( GetCurrentProcess(), REALTIME_PRIORITY_CLASS ) == 0 )
+		if( SetPriorityClass( GetCurrentProcess(), NORMAL_PRIORITY_CLASS ) == 0 )
 		{
 		{
 			printf( "SetPriorityClass() failed\r\n" );
 			printf( "SetPriorityClass() failed\r\n" );
 		}
 		}