summaryrefslogtreecommitdiff
path: root/nuttx/configs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-13 00:25:05 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-13 00:25:05 +0000
commit3f719364f834d32d2a4b14445a5178ac7d1326ef (patch)
tree085c7b5d024a4b4dc59a8b2af52aee1c2b712516 /nuttx/configs
parent576104c91e6efaecbc22811bea94aacc5f91d74a (diff)
downloadpx4-nuttx-3f719364f834d32d2a4b14445a5178ac7d1326ef.tar.gz
px4-nuttx-3f719364f834d32d2a4b14445a5178ac7d1326ef.tar.bz2
px4-nuttx-3f719364f834d32d2a4b14445a5178ac7d1326ef.zip
Add test for CONFIG_SEM_PREALLOCHOLDERS > 0
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1596 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs')
-rw-r--r--nuttx/configs/README.txt8
-rw-r--r--nuttx/configs/sim/ostest/defconfig10
2 files changed, 17 insertions, 1 deletions
diff --git a/nuttx/configs/README.txt b/nuttx/configs/README.txt
index cfd20b3b9..e6b656dc8 100644
--- a/nuttx/configs/README.txt
+++ b/nuttx/configs/README.txt
@@ -199,6 +199,14 @@ defconfig -- This is a configuration file similar to the Linux
errorcheck mutexes. Enables pthread_mutexattr_settype().
CONFIG_PRIORITY_INHERITANCE - Set to enable support for
priority inheritance on mutexes and semaphores.
+ CONFIG_SEM_PREALLOCHOLDERS: This setting is only used if priority
+ inheritance is enabled. It defines the maximum number of
+ different threads (minus one) that can take counts on a
+ semaphore with priority inheritance support. This may be
+ set to zero if priority inheritance is disabled OR if you
+ are only using semaphores as mutexes (only one holder) OR
+ if no more than two threads participate using a counting
+ semaphore.
The following can be used to disable categories of APIs supported
by the OS. If the compiler supports weak functions, then it
diff --git a/nuttx/configs/sim/ostest/defconfig b/nuttx/configs/sim/ostest/defconfig
index e9beee06b..32823d716 100644
--- a/nuttx/configs/sim/ostest/defconfig
+++ b/nuttx/configs/sim/ostest/defconfig
@@ -85,7 +85,14 @@ CONFIG_ARCH_BOARD_SIM=y
# CONFIG_MUTEX_TYPES: Set to enable support for recursive and
# errorcheck mutexes. Enables pthread_mutexattr_settype().
# CONFIG_PRIORITY_INHERITANCE : Set to enable support for priority
-# inheritance on mutexes and semaphores.
+# inheritance on mutexes and semaphores.
+# CONFIG_SEM_PREALLOCHOLDERS: This setting is only used if priority
+# inheritance is enabled. It defines the maximum number of different
+# threads (minus one) that can take counts on a semaphore with priority
+# inheritance support. This may be set to zero if priority inheritance
+# is disabled OR if you are only using semaphores as mutexes (only
+# one holder) OR if no more than two threads participate using a
+# counting semaphore.
#
CONFIG_EXAMPLE=ostest
CONFIG_DEBUG=y
@@ -103,6 +110,7 @@ CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
CONFIG_MUTEX_TYPES=y
CONFIG_PRIORITY_INHERITANCE=n
+CONFIG_SEM_PREALLOCHOLDERS=3
#
# The following can be used to disable categories of