From 7ce892d633435c7f4cbe18e1100162236182f7c7 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 14 Feb 2011 17:50:23 +0000 Subject: 2011-02-14 Joel Sherrill * 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. --- cpukit/score/include/rtems/score/coremutex.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpukit/score/include/rtems/score/coremutex.h') 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) -- cgit v1.2.3