2011-02-14 Joel Sherrill <joel.sherrilL@OARcorp.com>

* rtems/src/semtranslatereturncode.c, score/src/coremutexsurrender.c:
	Now all conditionals have the correct sense and all tests pass.
This commit is contained in:
Joel Sherrill
2011-02-14 20:21:31 +00:00
parent 7ce892d633
commit 261074795a
3 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2011-02-14 Joel Sherrill <joel.sherrilL@OARcorp.com>
* rtems/src/semtranslatereturncode.c, score/src/coremutexsurrender.c:
Now all conditionals have the correct sense and all tests pass.
2011-02-14 Joel Sherrill <joel.sherrilL@OARcorp.com>
* score/include/rtems/score/coremutex.h,

View File

@@ -64,7 +64,7 @@
const rtems_status_code _Semaphore_Translate_core_mutex_return_code_[] = {
RTEMS_SUCCESSFUL, /* CORE_MUTEX_STATUS_SUCCESSFUL */
RTEMS_UNSATISFIED, /* CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT */
#if !defined(RTEMS_POSIX_API)
#if defined(RTEMS_POSIX_API)
RTEMS_UNSATISFIED, /* CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED */
#endif
RTEMS_NOT_OWNER_OF_RESOURCE, /* CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE */

View File

@@ -137,7 +137,7 @@ CORE_mutex_Status _CORE_mutex_Surrender(
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
case CORE_MUTEX_NESTING_ACQUIRES:
return CORE_MUTEX_STATUS_SUCCESSFUL;
#if !defined(RTEMS_POSIX_API)
#if defined(RTEMS_POSIX_API)
case CORE_MUTEX_NESTING_IS_ERROR:
/* should never occur */
return CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;