summaryrefslogtreecommitdiff
path: root/nuttx/libc
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-10 16:38:19 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-10 16:38:19 -0600
commita0139421f74f47a91a9a54dc729660f33c87e4c8 (patch)
tree7164e58d59a711e2bcd0710247871a831755855e /nuttx/libc
parent1ba01252f2c83e0e903987b87e5a5a93d23b12ba (diff)
downloadnuttx-a0139421f74f47a91a9a54dc729660f33c87e4c8.tar.gz
nuttx-a0139421f74f47a91a9a54dc729660f33c87e4c8.tar.bz2
nuttx-a0139421f74f47a91a9a54dc729660f33c87e4c8.zip
Add Kconfig support to select the number of low-priority worker thread
Diffstat (limited to 'nuttx/libc')
-rw-r--r--nuttx/libc/Kconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/nuttx/libc/Kconfig b/nuttx/libc/Kconfig
index 76ece0222..72986be0f 100644
--- a/nuttx/libc/Kconfig
+++ b/nuttx/libc/Kconfig
@@ -471,6 +471,21 @@ config SCHED_LPWORK
if SCHED_LPWORK
+config SCHED_LPNTHREADS
+ int "Number of low-priority worker threads"
+ default 1 if !FS_AIO
+ default 4 if FS_AIO
+ ---help---
+ This options selectes multiple, low-priority threads. This is
+ essentially a "thread pool" that provides multi-threaded service
+ of the low-priority work thread. This breaks the serialization
+ of the "queue" (hence, it is no longer a queue at all).
+
+ This options is required to support, for example, I/O operations
+ that stall waiting for input. If there is only a single thread,
+ then the entire low-priority queue processing stalls in such cases.
+ Such behvior must be support for asynchronous I/O, AIO (for example).
+
config SCHED_LPWORKPRIORITY
int "Low priority worker thread priority"
default 50