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.
This commit is contained in:
Joel Sherrill
2007-06-20 19:21:01 +00:00
parent 7c5e3b3ff3
commit bdba53711d
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -1,3 +1,8 @@
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.
2007-06-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/confdefs.h: POSIX threads use twice the minimum stack
+2
View File
@@ -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,