diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-10 10:03:48 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-10 10:03:48 +0200 |
commit | db3a3decbd387a5f9bbac7089caa479c75589b74 (patch) | |
tree | c8009e93b4baa75b4faa6724d834911ef5c11291 /cpukit/posix/include/rtems/posix | |
parent | posix: Unconditional thread attribute support (diff) | |
download | rtems-db3a3decbd387a5f9bbac7089caa479c75589b74.tar.bz2 |
score: Add _Thread_queue_Dispatch_disable()
Diffstat (limited to 'cpukit/posix/include/rtems/posix')
-rw-r--r-- | cpukit/posix/include/rtems/posix/muteximpl.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cpukit/posix/include/rtems/posix/muteximpl.h b/cpukit/posix/include/rtems/posix/muteximpl.h index 833938bb2d..f146e0d9db 100644 --- a/cpukit/posix/include/rtems/posix/muteximpl.h +++ b/cpukit/posix/include/rtems/posix/muteximpl.h @@ -321,9 +321,7 @@ RTEMS_INLINE_ROUTINE Status_Control _POSIX_Mutex_Ceiling_set_owner( ); _Thread_Wait_release_default_critical( owner, &lock_context ); - cpu_self = _Thread_Dispatch_disable_critical( - &queue_context->Lock_context.Lock_context - ); + cpu_self = _Thread_queue_Dispatch_disable( queue_context ); _POSIX_Mutex_Release( the_mutex, queue_context ); _Thread_Priority_update( queue_context ); _Thread_Dispatch_enable( cpu_self ); @@ -413,9 +411,7 @@ RTEMS_INLINE_ROUTINE Status_Control _POSIX_Mutex_Ceiling_surrender( ); _Thread_Wait_release_default_critical( executing, &lock_context ); - cpu_self = _Thread_Dispatch_disable_critical( - &queue_context->Lock_context.Lock_context - ); + cpu_self = _Thread_queue_Dispatch_disable( queue_context ); heads = the_mutex->Recursive.Mutex.Queue.Queue.heads; |