Skip to content

Commit 30bb89d

Browse files
committed
【增加】内部调度器配置,在开启多线程模块后,防止线程死循环卡死系统。
Signed-off-by: armink <[email protected]>
1 parent e524405 commit 30bb89d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

port/mpconfigport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@
161161

162162
#ifdef MICROPYTHON_USING_THREAD
163163
#define MICROPY_PY_THREAD (1)
164-
#else
165-
#define MICROPY_PY_THREAD (0)
164+
#define MICROPY_ENABLE_SCHEDULER (1)
165+
#define MICROPY_SCHEDULER_DEPTH (8)
166166
#endif /* MICROPYTHON_USING_THREAD */
167167

168168
#ifdef MICROPYTHON_USING_USELECT

0 commit comments

Comments
 (0)