forked from Imagelibrary/rtems
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:
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user