2001-03-26 Zoltan Kocsi <zoltan@bendor.com.au>

* src/eventsurrender.c: Clear event condition when task is unblocked.
	This makes sure that subsequent event send thinks the task is still
	blocked and overwrites the initial events received.
This commit is contained in:
Joel Sherrill
2001-03-29 15:51:08 +00:00
parent 2c589337ea
commit bfbc4d3ccd
4 changed files with 16 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
2001-03-26 Zoltan Kocsi <zoltan@bendor.com.au>
* src/eventsurrender.c: Clear event condition when task is unblocked.
This makes sure that subsequent event send thinks the task is still
blocked and overwrites the initial events received.
2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am, include/rtems/rtems/Makefile.am,

View File

@@ -64,6 +64,7 @@ void _Event_Surrender(
if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
api->pending_events =
_Event_sets_Clear( pending_events, seized_events );
(rtems_event_set) the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
_ISR_Flash( level );