2009-05-18 Joel Sherrill <joel.sherrill@OARcorp.com>

PR 1412/cpukit
	* score/src/coremutex.c: Add missing braces. Broken with strict mutex
	code added.
This commit is contained in:
Joel Sherrill
2009-05-18 14:47:11 +00:00
parent f7e4067f3c
commit 120f283805
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2009-05-18 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1412/cpukit
* score/src/coremutex.c: Add missing braces. Broken with strict mutex
code added.
2009-05-13 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1411/cpukit

View File

@@ -63,7 +63,7 @@ void _CORE_mutex_Initialize(
the_mutex->holder = _Thread_Executing;
the_mutex->holder_id = _Thread_Executing->Object.id;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) )
_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
#ifdef __RTEMS_STRICT_ORDER_MUTEX__
_Chain_Prepend_unprotected( &_Thread_Executing->lock_mutex,
@@ -72,6 +72,7 @@ void _CORE_mutex_Initialize(
#endif
_Thread_Executing->resource_count++;
}
} else {
the_mutex->nest_count = 0;
the_mutex->holder = NULL;