summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/prwlockunlock.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-19 15:00:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-22 16:57:23 +0200
commit982e97463f66b09b79825c481f3b3f343ef361b8 (patch)
treebf7d0a227442d89b4ac851227d7d9db344678932 /cpukit/posix/src/prwlockunlock.c
parentscore: Create rwlock implementation header (diff)
downloadrtems-982e97463f66b09b79825c481f3b3f343ef361b8.tar.bz2
score: Avoid direct usage of _Thread_Executing
Pass the executing thread as a function parameter. Obtain the executing thread inside a thread dispatch critical section to avoid problems on SMP.
Diffstat (limited to '')
-rw-r--r--cpukit/posix/src/prwlockunlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/prwlockunlock.c b/cpukit/posix/src/prwlockunlock.c
index 13fc6dcc57..b7cd360464 100644
--- a/cpukit/posix/src/prwlockunlock.c
+++ b/cpukit/posix/src/prwlockunlock.c
@@ -54,7 +54,7 @@ int pthread_rwlock_unlock(
switch ( location ) {
case OBJECTS_LOCAL:
- status = _CORE_RWLock_Release( &the_rwlock->RWLock );
+ status = _CORE_RWLock_Release( &the_rwlock->RWLock, _Thread_Executing );
_Objects_Put( &the_rwlock->Object );
return _POSIX_RWLock_Translate_core_RWLock_return_code( status );