diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-18 14:27:30 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-22 16:56:58 +0200 |
commit | e36f2b8c914b73bacfc89b997f4a59d5387303ce (patch) | |
tree | 19f4c9e363b353ea441c2459e5b697d18c4c8c5e /cpukit/rtems | |
parent | score: Add const qualifier (diff) | |
download | rtems-e36f2b8c914b73bacfc89b997f4a59d5387303ce.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/rtems/src/semobtain.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/rtems/src/semobtain.c b/cpukit/rtems/src/semobtain.c index 89e7bb643d..f29b9b5458 100644 --- a/cpukit/rtems/src/semobtain.c +++ b/cpukit/rtems/src/semobtain.c @@ -71,6 +71,7 @@ rtems_status_code rtems_semaphore_obtain( /* must be a counting semaphore */ _CORE_semaphore_Seize_isr_disable( &the_semaphore->Core_control.semaphore, + executing, id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, |