Changeset 18269cef in rtems


Ignore:
Timestamp:
Feb 13, 1996, 3:37:33 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
b38955b
Parents:
a31ddf7
Message:

comment added to describe synchronization logic in timeout routine

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/rtems/src/event.c

    ra31ddf7 r18269cef  
    199199  switch ( sync_state ) {
    200200    case EVENT_SYNC_SYNCHRONIZED:
     201      /*
     202       *  This cannot happen.  It indicates that this routine did not
     203       *  enter the synchronization states above.
     204       */
     205      return;
     206
    201207    case EVENT_SYNC_NOTHING_HAPPENED:
    202208      _ISR_Enable( level );
    203209      return;
     210
    204211    case EVENT_SYNC_TIMEOUT:
    205212      executing->Wait.return_code = RTEMS_TIMEOUT;
     
    207214      _Thread_Unblock( executing );
    208215      return;
     216
    209217    case EVENT_SYNC_SATISFIED:
    210218      if ( _Watchdog_Is_active( &executing->Timer ) ) {
     
    329337      break;
    330338    case OBJECTS_LOCAL:
     339 
     340      /*
     341       *  If the event manager is not synchronized, then it is either
     342       *  "nothing happened", "timeout", or "satisfied".   If the_thread
     343       *  is the executing thread, then it is in the process of blocking
     344       *  and it is the thread which is responsible for the synchronization
     345       *  process.
     346       *
     347       *  If it is not satisfied, then it is "nothing happened" and
     348       *  this is the "timeout" transition.  After a request is satisfied,
     349       *  a timeout is not allowed to occur.
     350       */
     351
    331352      if ( _Event_Sync_state != EVENT_SYNC_SYNCHRONIZED &&
    332353           _Thread_Is_executing( the_thread ) ) {
  • cpukit/rtems/src/event.c

    ra31ddf7 r18269cef  
    199199  switch ( sync_state ) {
    200200    case EVENT_SYNC_SYNCHRONIZED:
     201      /*
     202       *  This cannot happen.  It indicates that this routine did not
     203       *  enter the synchronization states above.
     204       */
     205      return;
     206
    201207    case EVENT_SYNC_NOTHING_HAPPENED:
    202208      _ISR_Enable( level );
    203209      return;
     210
    204211    case EVENT_SYNC_TIMEOUT:
    205212      executing->Wait.return_code = RTEMS_TIMEOUT;
     
    207214      _Thread_Unblock( executing );
    208215      return;
     216
    209217    case EVENT_SYNC_SATISFIED:
    210218      if ( _Watchdog_Is_active( &executing->Timer ) ) {
     
    329337      break;
    330338    case OBJECTS_LOCAL:
     339 
     340      /*
     341       *  If the event manager is not synchronized, then it is either
     342       *  "nothing happened", "timeout", or "satisfied".   If the_thread
     343       *  is the executing thread, then it is in the process of blocking
     344       *  and it is the thread which is responsible for the synchronization
     345       *  process.
     346       *
     347       *  If it is not satisfied, then it is "nothing happened" and
     348       *  this is the "timeout" transition.  After a request is satisfied,
     349       *  a timeout is not allowed to occur.
     350       */
     351
    331352      if ( _Event_Sync_state != EVENT_SYNC_SYNCHRONIZED &&
    332353           _Thread_Is_executing( the_thread ) ) {
Note: See TracChangeset for help on using the changeset viewer.