diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-12-04 14:16:26 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-12-04 14:16:26 +0000 |
commit | 6bc7a5e1a38d6566fb404bcb736bf96926f4b1fe (patch) | |
tree | b1391462c49d831b954c61d2712228fa7b87ddc0 /cpukit/score/src/corerwlockobtainread.c | |
parent | 2006-12-04 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-6bc7a5e1a38d6566fb404bcb736bf96926f4b1fe.tar.bz2 |
2006-12-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/prwlockunlock.c, rtems/Makefile.am,
rtems/src/barrierrelease.c, rtems/src/barrierwait.c,
score/src/corerwlockobtainread.c, score/src/corerwlockrelease.c:
Complete implementation of barrier as the rest of the test code is
now implemented. Also add blocking code to rwlock.
Diffstat (limited to 'cpukit/score/src/corerwlockobtainread.c')
-rw-r--r-- | cpukit/score/src/corerwlockobtainread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/corerwlockobtainread.c b/cpukit/score/src/corerwlockobtainread.c index 46f77043e8..724529eef5 100644 --- a/cpukit/score/src/corerwlockobtainread.c +++ b/cpukit/score/src/corerwlockobtainread.c @@ -93,7 +93,7 @@ void _CORE_RWLock_Obtain_for_reading( _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue ); executing->Wait.queue = &the_rwlock->Wait_queue; executing->Wait.id = id; - executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_WRITE; + executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ; executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; _ISR_Enable( level ); |