[rtems commit] rtems: Add comment
Sebastian Huber
sebh at rtems.org
Mon Jan 7 14:11:44 UTC 2013
Module: rtems
Branch: master
Commit: 69d034af0aa2745346d97c0ee2fe2bfbe71e1439
Changeset: http://git.rtems.org/rtems/commit/?id=69d034af0aa2745346d97c0ee2fe2bfbe71e1439
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jan 2 18:56:34 2013 +0100
rtems: Add comment
---
cpukit/rtems/src/eventsurrender.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/cpukit/rtems/src/eventsurrender.c b/cpukit/rtems/src/eventsurrender.c
index 05b8481..d0b1004 100644
--- a/cpukit/rtems/src/eventsurrender.c
+++ b/cpukit/rtems/src/eventsurrender.c
@@ -39,6 +39,11 @@ void _Event_Surrender(
_ISR_Disable( level );
_Event_sets_Post( event_in, &event->pending_events );
pending_events = event->pending_events;
+
+ /*
+ * At this point the event condition is a speculative quantity. Later state
+ * checks will show if the thread actually waits for an event.
+ */
event_condition = the_thread->Wait.count;
seized_events = _Event_sets_Get( pending_events, event_condition );
More information about the vc
mailing list