Sfoglia il codice sorgente

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

Wendal Chen 4 anni fa
parent
commit
9de4bf5b2a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      components/freertos/portable/MSVC-MingW/port.c

+ 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
 		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" );
 		}