Skip to content

Commit 9f7cc78

Browse files
authored
Merge pull request #2680 from BernardXiong/pthreads
[pthreads] Change the pthreads management.
2 parents 91f6abb + ab595cc commit 9f7cc78

File tree

7 files changed

+237
-103
lines changed

7 files changed

+237
-103
lines changed

components/libc/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ config RT_USING_PTHREADS
88
bool "Enable pthreads APIs"
99
default n
1010

11+
if RT_USING_PTHREADS
12+
config PTHREAD_NUM_MAX
13+
int "Maximum number of pthreads"
14+
default 8
15+
endif
16+
1117
if RT_USING_LIBC && RT_USING_DFS
1218
config RT_USING_POSIX
1319
bool "Enable POSIX layer for poll/select, stdin etc"

0 commit comments

Comments
 (0)