summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mutexunlock.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-27 15:23:00 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-27 15:23:00 +0200
commit8797c76addf22a2f0ffc3717ff977695e35b9b0b (patch)
tree75489c28e223e9dcec1dde6ff335ddd595d71f61 /cpukit/posix/src/mutexunlock.c
parentscore: Simplify ISR lock name (diff)
downloadrtems-8797c76addf22a2f0ffc3717ff977695e35b9b0b.tar.bz2
score: Unify CORE mutex seize/surrender
Use the Thread_Control::resource_count for the no protocol mutexes. Merge the no protocol and priority inherit CORE mutex seize/surrender operations.
Diffstat (limited to 'cpukit/posix/src/mutexunlock.c')
-rw-r--r--cpukit/posix/src/mutexunlock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/posix/src/mutexunlock.c b/cpukit/posix/src/mutexunlock.c
index 3144314e5c..c15f7e6ad2 100644
--- a/cpukit/posix/src/mutexunlock.c
+++ b/cpukit/posix/src/mutexunlock.c
@@ -53,7 +53,7 @@ int pthread_mutex_unlock(
);
break;
case POSIX_MUTEX_NO_PROTOCOL:
- status = _CORE_recursive_mutex_Surrender_no_protocol(
+ status = _CORE_recursive_mutex_Surrender(
&the_mutex->Mutex.Recursive,
POSIX_MUTEX_NO_PROTOCOL_TQ_OPERATIONS,
executing,
@@ -64,6 +64,7 @@ int pthread_mutex_unlock(
_Assert( the_mutex->protocol == POSIX_MUTEX_PRIORITY_INHERIT );
status = _CORE_recursive_mutex_Surrender(
&the_mutex->Mutex.Recursive,
+ CORE_MUTEX_TQ_PRIORITY_INHERIT_OPERATIONS,
executing,
&queue_context
);