2005-03-17 Joel Sherrill <joel@OARcorp.com>

PR 692/rtems
	* src/regiongetsegment.c, src/regionreturnsegment.c: The Region
	Manager did not follow the proper protocol when blocking and
	unblocking tasks waiting on buffers. This was a bug introduced with
	the transition to an Allocation Mutex.
This commit is contained in:
Joel Sherrill
2005-03-17 14:30:40 +00:00
parent 70541799ee
commit 0be243352f
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,11 @@
2005-03-17 Joel Sherrill <joel@OARcorp.com>
PR 692/rtems
* src/regiongetsegment.c, src/regionreturnsegment.c: The Region
Manager did not follow the proper protocol when blocking and
unblocking tasks waiting on buffers. This was a bug introduced with
the transition to an Allocation Mutex.
2005-03-17 Joel Sherrill <joel@OARcorp.com>
PR 745/rtems

View File

@@ -104,8 +104,8 @@ rtems_status_code rtems_region_return_segment(
* NOTE: The following loop is O(n) where n is the number of
* threads whose memory request is satisfied.
*/
_RTEMS_Unlock_allocator();
_Thread_Disable_dispatch();
_RTEMS_Unlock_allocator();
for ( ; ; ) {
the_thread = _Thread_queue_First( &the_region->Wait_queue );