mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-21 08:00:48 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user