Add test for CONFIG_SEM_PREALLOCHOLDERS > 0

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1597 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2009-03-13 00:54:10 +00:00
parent 611449037c
commit 874e75632f
2 changed files with 13 additions and 1 deletions

View File

@ -207,6 +207,12 @@ defconfig -- This is a configuration file similar to the Linux
are only using semaphores as mutexes (only one holder) OR are only using semaphores as mutexes (only one holder) OR
if no more than two threads participate using a counting if no more than two threads participate using a counting
semaphore. semaphore.
CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled,
then this setting is the maximum number of higher priority
threads (minus 1) than can be waiting for another thread
to release a count on a semaphore. This value may be set
to zero if no more than one thread is expected to wait for
a semaphore.
The following can be used to disable categories of APIs supported The following can be used to disable categories of APIs supported
by the OS. If the compiler supports weak functions, then it by the OS. If the compiler supports weak functions, then it

View File

@ -93,6 +93,11 @@ CONFIG_ARCH_BOARD_SIM=y
# is disabled OR if you are only using semaphores as mutexes (only # is disabled OR if you are only using semaphores as mutexes (only
# one holder) OR if no more than two threads participate using a # one holder) OR if no more than two threads participate using a
# counting semaphore. # counting semaphore.
# CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled, then this
# setting is the maximum number of higher priority threads (minus 1)
# than can be waiting for another thread to release a count on a
# semaphore. This value may be set to zero if no more than one
# thread is expected to wait for a semaphore.
# #
CONFIG_EXAMPLE=ostest CONFIG_EXAMPLE=ostest
CONFIG_DEBUG=y CONFIG_DEBUG=y
@ -110,7 +115,8 @@ CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n CONFIG_DEV_LOWCONSOLE=n
CONFIG_MUTEX_TYPES=y CONFIG_MUTEX_TYPES=y
CONFIG_PRIORITY_INHERITANCE=n CONFIG_PRIORITY_INHERITANCE=n
CONFIG_SEM_PREALLOCHOLDERS=3 CONFIG_SEM_PREALLOCHOLDERS=0
CONFIG_SEM_NNESTPRIO=0
# #
# The following can be used to disable categories of # The following can be used to disable categories of