summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/corerwlock.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-06-20 19:21:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-06-20 19:21:01 +0000
commitbdba53711d0112cd862719a8cffd5f907331aa8b (patch)
treef20743d8f5798e316388a25e0c9aca2a195ec9a3 /cpukit/score/src/corerwlock.c
parent2007-06-20 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-bdba53711d0112cd862719a8cffd5f907331aa8b.tar.bz2
2007-06-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/corerwlock.c: Make sure structure is fully initialized. When reused, some fields will not be zero like at initialization.
Diffstat (limited to 'cpukit/score/src/corerwlock.c')
-rw-r--r--cpukit/score/src/corerwlock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/src/corerwlock.c b/cpukit/score/src/corerwlock.c
index 3629f146aa..e9b9363feb 100644
--- a/cpukit/score/src/corerwlock.c
+++ b/cpukit/score/src/corerwlock.c
@@ -52,6 +52,8 @@ void _CORE_RWLock_Initialize(
/*
the_rwlock->number_of_waiting_threads = 0;
*/
+ the_rwlock->number_of_readers = 0;
+ the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;
_Thread_queue_Initialize(
&the_rwlock->Wait_queue,