mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
libuv: Make stream read buffer size configurable
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
1ddeaa1468
commit
713cd4d971
2 changed files with 5 additions and 0 deletions
|
|
@ -24,6 +24,10 @@ config LIBUV_THREADPOOL_PRIORITY
|
|||
int "libuv default thread pool priority"
|
||||
default 100
|
||||
|
||||
config LIBUV_STREAM_READ_BUF_SIZE
|
||||
int "libuv stream read buffer size"
|
||||
default 4096
|
||||
|
||||
config LIBUV_BACKEND_EPOLL
|
||||
bool "Using epoll backend in libuv"
|
||||
default y
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ CFLAGS += -DDEF_THREADPOOL_STACKSIZE=CONFIG_LIBUV_THREAD_STACKSIZE
|
|||
CFLAGS += -DDEF_THREADPOOL_PRIORITY=CONFIG_LIBUV_THREADPOOL_PRIORITY
|
||||
CFLAGS += -DMAX_EPOLL_EVENTS=CONFIG_LIBUV_MAX_EPOLL_EVENTS
|
||||
CFLAGS += -DPREP_EVENT_SIZE=CONFIG_LIBUV_PREP_EVENT_SIZE
|
||||
CFLAGS += -DDEF_STREAM_READ_BUF_SIZE=CONFIG_LIBUV_STREAM_READ_BUF_SIZE
|
||||
|
||||
ifeq ($(shell expr "$(GCCVER)" \>= 12), 1)
|
||||
CFLAGS += -Wno-dangling-pointer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue