From 024bffc665768504f594f23c9a9a6fdcca2bab38 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 30 May 2016 15:00:32 +0200 Subject: score: Use owner of thread queue for CORE mutex --- cpukit/score/include/rtems/score/coremuteximpl.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cpukit/score/include/rtems/score/coremuteximpl.h') diff --git a/cpukit/score/include/rtems/score/coremuteximpl.h b/cpukit/score/include/rtems/score/coremuteximpl.h index 69311e4101..decf770eed 100644 --- a/cpukit/score/include/rtems/score/coremuteximpl.h +++ b/cpukit/score/include/rtems/score/coremuteximpl.h @@ -40,7 +40,6 @@ RTEMS_INLINE_ROUTINE void _CORE_mutex_Initialize( ) { _Thread_queue_Initialize( &the_mutex->Wait_queue ); - the_mutex->holder = NULL; } RTEMS_INLINE_ROUTINE void _CORE_mutex_Destroy( CORE_mutex_Control *the_mutex ) @@ -74,7 +73,7 @@ RTEMS_INLINE_ROUTINE Thread_Control *_CORE_mutex_Get_owner( const CORE_mutex_Control *the_mutex ) { - return the_mutex->holder; + return the_mutex->Wait_queue.Queue.owner; } /** @@ -126,7 +125,7 @@ RTEMS_INLINE_ROUTINE void _CORE_mutex_Set_owner( Thread_Control *owner ) { - the_mutex->holder = owner; + the_mutex->Wait_queue.Queue.owner = owner; } RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_owner( -- cgit v1.2.3