diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-29 13:51:53 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-29 13:51:53 +0000 |
commit | 28352faecf8b000b71f734cd728f38aa212b9669 (patch) | |
tree | c8e773b36bf32ba725cc1548e515f2fa9f8ebe96 /cpukit/score/src/corerwlockrelease.c | |
parent | Whitespace removal. (diff) | |
download | rtems-28352faecf8b000b71f734cd728f38aa212b9669.tar.bz2 |
Whitespace removal.
Diffstat (limited to 'cpukit/score/src/corerwlockrelease.c')
-rw-r--r-- | cpukit/score/src/corerwlockrelease.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/corerwlockrelease.c b/cpukit/score/src/corerwlockrelease.c index 98aa973580..379fdebdec 100644 --- a/cpukit/score/src/corerwlockrelease.c +++ b/cpukit/score/src/corerwlockrelease.c @@ -61,7 +61,7 @@ CORE_RWLock_Status _CORE_RWLock_Release( _ISR_Enable( level ); return CORE_RWLOCK_SUCCESSFUL; } - } + } /* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */ executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; @@ -74,7 +74,7 @@ CORE_RWLock_Status _CORE_RWLock_Release( _ISR_Enable( level ); next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue ); - + if ( next ) { if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) { the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING; @@ -92,7 +92,7 @@ CORE_RWLock_Status _CORE_RWLock_Release( */ while ( 1 ) { next = _Thread_queue_First( &the_rwlock->Wait_queue ); - if ( !next || + if ( !next || next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) return CORE_RWLOCK_SUCCESSFUL; the_rwlock->number_of_readers += 1; |