This is an automated email from the ASF dual-hosted git repository.

ligd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 9c51919a1a2b63cc185b0ea94156911582e48ba0
Author: yinshengkai <yinsheng...@xiaomi.com>
AuthorDate: Wed Sep 13 11:46:47 2023 +0800

    libuv:add threadpool DEF_THREADPOOL_PRIORITY
    
    Signed-off-by: yinshengkai <yinsheng...@xiaomi.com>
---
 system/libuv/CMakeLists.txt | 6 ++++--
 system/libuv/Kconfig        | 4 ++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/system/libuv/CMakeLists.txt b/system/libuv/CMakeLists.txt
index 205eeae7c..55375ad2b 100644
--- a/system/libuv/CMakeLists.txt
+++ b/system/libuv/CMakeLists.txt
@@ -55,8 +55,10 @@ if(CONFIG_LIBUV)
   # Flags
   # 
############################################################################
 
-  set(CFLAGS -Wno-shadow -DDEF_THREADPOOL_SIZE=CONFIG_LIBUV_THREADPOOL_SIZE
-             -DDEF_THREADPOOL_STACKSIZE=CONFIG_LIBUV_THREAD_STACKSIZE)
+  set(CFLAGS
+      -Wno-shadow -DDEF_THREADPOOL_SIZE=CONFIG_LIBUV_THREADPOOL_SIZE
+      -DDEF_THREADPOOL_STACKSIZE=CONFIG_LIBUV_THREAD_STACKSIZE
+      -DDEF_THREADPOOL_PRIORITY=CONFIG_LIBUV_THREADPOOL_PRIORITY)
 
   if(GCCVER EQUAL 12)
     list(APPEND CFLAGS -Wno-dangling-pointer)
diff --git a/system/libuv/Kconfig b/system/libuv/Kconfig
index dabe7dbf5..e0d18746a 100644
--- a/system/libuv/Kconfig
+++ b/system/libuv/Kconfig
@@ -20,6 +20,10 @@ config LIBUV_THREAD_STACKSIZE
        int "libuv worker thread stack size"
        default PTHREAD_STACK_DEFAULT
 
+config LIBUV_THREADPOOL_PRIORITY
+       int "libuv default thread pool priority"
+       default 100
+
 config LIBUV_BACKEND_EPOLL
        bool "Using epoll backend in libuv"
        default y

Reply via email to