diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-11-23 17:38:09 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-11-23 17:38:09 +0000 |
commit | 97e2729d1a3432b9792b82ce88ce6d804a104f7a (patch) | |
tree | ce8c041ef504f965a4af05775af348c7023b19f9 /c/src/exec/score/src/coremutex.c | |
parent | Added networking. (diff) | |
download | rtems-97e2729d1a3432b9792b82ce88ce6d804a104f7a.tar.bz2 |
Added --disable-multiprocessing flag and modified a lot of files to make
it work.
Diffstat (limited to 'c/src/exec/score/src/coremutex.c')
-rw-r--r-- | c/src/exec/score/src/coremutex.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/c/src/exec/score/src/coremutex.c b/c/src/exec/score/src/coremutex.c index dac5a5172b..bda01a06e9 100644 --- a/c/src/exec/score/src/coremutex.c +++ b/c/src/exec/score/src/coremutex.c @@ -293,6 +293,7 @@ CORE_mutex_Status _CORE_mutex_Surrender( if ( ( the_thread = _Thread_queue_Dequeue( &the_mutex->Wait_queue ) ) ) { +#if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) { the_mutex->holder = NULL; @@ -301,7 +302,9 @@ CORE_mutex_Status _CORE_mutex_Surrender( ( *api_mutex_mp_support)( the_thread, id ); - } else { + } else +#endif + { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; |