summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/corerwlockrelease.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/score/src/corerwlockrelease.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 'cpukit/score/src/corerwlockrelease.c')
-rw-r--r--cpukit/score/src/corerwlockrelease.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/corerwlockrelease.c b/cpukit/score/src/corerwlockrelease.c
index 2bbf1a7238..c0b23e08e3 100644
--- a/cpukit/score/src/corerwlockrelease.c
+++ b/cpukit/score/src/corerwlockrelease.c
@@ -26,11 +26,11 @@
#include <rtems/score/watchdog.h>
CORE_RWLock_Status _CORE_RWLock_Release(
- CORE_RWLock_Control *the_rwlock
+ CORE_RWLock_Control *the_rwlock,
+ Thread_Control *executing
)
{
ISR_Level level;
- Thread_Control *executing = _Thread_Executing;
Thread_Control *next;
/*