diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-17 15:53:17 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-18 09:58:58 +0200 |
commit | 95e09afa92c5d0522a0d04019ef6680796688896 (patch) | |
tree | 2c04a60ed5669b4baba5a783e1919b4b4a37d858 /cpukit/posix/src/mutexinit.c | |
parent | score: Convert to inline function (diff) | |
download | rtems-95e09afa92c5d0522a0d04019ef6680796688896.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/posix/src/mutexinit.c')
-rw-r--r-- | cpukit/posix/src/mutexinit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/posix/src/mutexinit.c b/cpukit/posix/src/mutexinit.c index d4f188c050..36844c8941 100644 --- a/cpukit/posix/src/mutexinit.c +++ b/cpukit/posix/src/mutexinit.c @@ -179,6 +179,7 @@ int pthread_mutex_init( */ _CORE_mutex_Initialize( &the_mutex->Mutex, + NULL, the_mutex_attr, CORE_MUTEX_UNLOCKED ); |