We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb506e8 commit 7038465Copy full SHA for 7038465
components/libc/Kconfig
@@ -8,6 +8,12 @@ config RT_USING_PTHREADS
8
bool "Enable pthreads APIs"
9
default n
10
11
+if RT_USING_PTHREADS
12
+ config PTHREAD_NUM_MAX
13
+ int "Maximum number of pthreads"
14
+ default 8
15
+endif
16
+
17
if RT_USING_LIBC && RT_USING_DFS
18
config RT_USING_POSIX
19
bool "Enable POSIX layer for poll/select, stdin etc"
components/libc/pthreads/pthread_internal.h
@@ -30,7 +30,10 @@ struct _pthread_key_data
30
};
31
typedef struct _pthread_key_data _pthread_key_data_t;
32
33
+#ifndef PTHREAD_NUM_MAX
34
#define PTHREAD_NUM_MAX 32
35
+#endif
36
37
#define PTHREAD_MAGIC 0x70746873
38
struct _pthread_data
39
{
0 commit comments