Explorar o código

【优化】mpy 线程有限级。

Signed-off-by: armink <armink.ztl@gmail.com>
armink %!s(int64=7) %!d(string=hai) anos
pai
achega
e524405721
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      port/mpthreadport.c

+ 1 - 1
port/mpthreadport.c

@@ -38,7 +38,7 @@
 
 #define MP_THREAD_MIN_STACK_SIZE                 (4 * 1024)
 #define MP_THREAD_DEFAULT_STACK_SIZE             (MP_THREAD_MIN_STACK_SIZE + 1024)
-#define MP_THREAD_PRIORITY                       (RT_THREAD_PRIORITY_MAX - 1)
+#define MP_THREAD_PRIORITY                       (FINSH_THREAD_PRIORITY - 1)
 
 #define MP_THREAD_STATUS_READY                   0
 #define MP_THREAD_STATUS_RUNNING                 1