diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-10-10 16:38:19 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-10-10 16:38:19 -0600 |
commit | a0139421f74f47a91a9a54dc729660f33c87e4c8 (patch) | |
tree | 7164e58d59a711e2bcd0710247871a831755855e /nuttx/libc | |
parent | 1ba01252f2c83e0e903987b87e5a5a93d23b12ba (diff) | |
download | nuttx-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/Kconfig | 15 |
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 |