diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-19 15:00:11 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-22 16:57:23 +0200 |
commit | 982e97463f66b09b79825c481f3b3f343ef361b8 (patch) | |
tree | bf7d0a227442d89b4ac851227d7d9db344678932 /cpukit/score/include | |
parent | score: Create rwlock implementation header (diff) | |
download | rtems-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/include')
-rw-r--r-- | cpukit/score/include/rtems/score/corerwlockimpl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/corerwlockimpl.h b/cpukit/score/include/rtems/score/corerwlockimpl.h index 347754c5e1..a47f400b49 100644 --- a/cpukit/score/include/rtems/score/corerwlockimpl.h +++ b/cpukit/score/include/rtems/score/corerwlockimpl.h @@ -105,6 +105,7 @@ void _CORE_RWLock_Initialize( void _CORE_RWLock_Obtain_for_reading( CORE_RWLock_Control *the_rwlock, + Thread_Control *executing, Objects_Id id, bool wait, Watchdog_Interval timeout, @@ -128,6 +129,7 @@ void _CORE_RWLock_Obtain_for_reading( */ void _CORE_RWLock_Obtain_for_writing( CORE_RWLock_Control *the_rwlock, + Thread_Control *executing, Objects_Id id, bool wait, Watchdog_Interval timeout, @@ -145,7 +147,8 @@ void _CORE_RWLock_Obtain_for_writing( * @retval Status is returned to indicate successful or failure. */ CORE_RWLock_Status _CORE_RWLock_Release( - CORE_RWLock_Control *the_rwlock + CORE_RWLock_Control *the_rwlock, + Thread_Control *executing ); /** |