You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/04 05:46:10 UTC
[incubator-nuttx-apps] branch master updated: nxplayer &
nxrecorder: make main thread configurable, set to default
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new ee7b0fc nxplayer & nxrecorder: make main thread configurable, set to default
ee7b0fc is described below
commit ee7b0fc1dd150edfe4a3a2fcbdcda9530262e2b6
Author: ligd <li...@xiaomi.com>
AuthorDate: Tue Oct 27 12:25:20 2020 +0800
nxplayer & nxrecorder: make main thread configurable, set to default
Change-Id: I730f2dab00da245a79fc61d679296e73efc2374f
Signed-off-by: ligd <li...@xiaomi.com>
---
system/nxplayer/Kconfig | 2 +-
system/nxrecorder/Kconfig | 8 +++++++-
system/nxrecorder/Makefile | 2 +-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/system/nxplayer/Kconfig b/system/nxplayer/Kconfig
index d448c6d..7889312 100644
--- a/system/nxplayer/Kconfig
+++ b/system/nxplayer/Kconfig
@@ -21,7 +21,7 @@ config NXPLAYER_MAINTHREAD_STACKSIZE
config NXPLAYER_PLAYTHREAD_STACKSIZE
int "NxPlayer thread stack size"
- default 1500
+ default PTHREAD_STACK_DEFAULT
---help---
Stack size to use with the NxPlayer play thread.
diff --git a/system/nxrecorder/Kconfig b/system/nxrecorder/Kconfig
index fc00251..4dee937 100644
--- a/system/nxrecorder/Kconfig
+++ b/system/nxrecorder/Kconfig
@@ -13,9 +13,15 @@ config SYSTEM_NXRECORDER
if SYSTEM_NXRECORDER
+config NXRECORDER_MAINTHREAD_STACKSIZE
+ int "NxRecoder main thread stack size"
+ default DEFAULT_TASK_STACKSIZE
+ ---help---
+ Stack size to use with the NxRecoder main thread.
+
config NXRECORDER_RECORDTHREAD_STACKSIZE
int "NxRecorder thread stack size"
- default 1500
+ default PTHREAD_STACK_DEFAULT
---help---
Stack size to use with the NxRecorder record thread.
diff --git a/system/nxrecorder/Makefile b/system/nxrecorder/Makefile
index e28aa61..f7eb665 100644
--- a/system/nxrecorder/Makefile
+++ b/system/nxrecorder/Makefile
@@ -28,7 +28,7 @@ CSRCS = nxrecorder.c
ifneq ($(CONFIG_NXRECORDER_COMMAND_LINE),)
PROGNAME = nxrecorder
PRIORITY = SCHED_PRIORITY_DEFAULT
-STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE)
+STACKSIZE = $(CONFIG_NXRECORDER_MAINTHREAD_STACKSIZE)
MODULE = $(CONFIG_NXRECORDER_COMMAND_LINE)
MAINSRC = nxrecorder_main.c