score: Add const qualifier

This commit is contained in:
Sebastian Huber
2015-04-16 11:35:54 +02:00
parent 72e846d534
commit 64548a3aff
3 changed files with 3 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ void _API_Mutex_Lock( API_Mutex_Control *mutex );
*/
void _API_Mutex_Unlock( API_Mutex_Control *mutex );
bool _API_Mutex_Is_locked( API_Mutex_Control *mutex );
bool _API_Mutex_Is_locked( const API_Mutex_Control *mutex );
/** @} */

View File

@@ -351,7 +351,7 @@ void _CORE_mutex_Flush(
* @retval false The mutex is not locked.
*/
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_locked(
CORE_mutex_Control *the_mutex
const CORE_mutex_Control *the_mutex
)
{
return the_mutex->holder != NULL;

View File

@@ -22,7 +22,7 @@
#include <rtems/score/apimutex.h>
#include <rtems/score/coremuteximpl.h>
bool _API_Mutex_Is_locked( API_Mutex_Control *the_mutex )
bool _API_Mutex_Is_locked( const API_Mutex_Control *the_mutex )
{
return _CORE_mutex_Is_locked( &the_mutex->Mutex );
}