[PATCH 1/5] rtems: Add comment

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jan 2 17:56:34 UTC 2013


---
 cpukit/rtems/src/eventsurrender.c |    5 +++++
 1 file changed, 5 insertions(+)

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 );
-- 
1.7.10.4




More information about the devel mailing list