forked from Imagelibrary/rtems
score: Add const qualifier
This commit is contained in:
@@ -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 );
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user