diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-02-14 17:50:23 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-02-14 17:50:23 +0000 |
commit | 7ce892d633435c7f4cbe18e1100162236182f7c7 (patch) | |
tree | c016bdf0c8f24f8dd95d068839516051c10e0f96 /cpukit/score/include | |
parent | 2011-02-11 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-7ce892d633435c7f4cbe18e1100162236182f7c7.tar.bz2 |
2011-02-14 Joel Sherrill <joel.sherrilL@OARcorp.com>
* score/include/rtems/score/coremutex.h,
score/inline/rtems/score/coremutex.inl, score/src/apimutexallocate.c:
Fix direction of conditional and eliminate use of nesting is error
when POSIX is disabled.
Diffstat (limited to 'cpukit/score/include')
-rw-r--r-- | cpukit/score/include/rtems/score/coremutex.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/coremutex.h b/cpukit/score/include/rtems/score/coremutex.h index 97c4e5c947..5a0a800b28 100644 --- a/cpukit/score/include/rtems/score/coremutex.h +++ b/cpukit/score/include/rtems/score/coremutex.h @@ -85,7 +85,7 @@ typedef enum { * resource was unavailable. */ CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT, -#if !defined(RTEMS_POSIX_API) +#if defined(RTEMS_POSIX_API) /** This status indicates that an attempt was made to relock a mutex * for which nesting is not configured. */ @@ -142,6 +142,7 @@ typedef enum { * + unlock(m) */ CORE_MUTEX_NESTING_ACQUIRES, +#if defined(RTEMS_POSIX_API) /** * This sequence returns an error at the indicated point: * @@ -150,6 +151,7 @@ typedef enum { * + unlock(m) */ CORE_MUTEX_NESTING_IS_ERROR, +#endif /** * This sequence performs as indicated: * + lock(m) |