Ignore:
Timestamp:
Apr 16, 2002, 1:42:31 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
cb9b2bfc
Parents:
485e80fa
Message:

2002-04-16 Chris Johns <ccj@…>

  • src/threadinitialize.c: Per PR181, clear the array of user extension pointers. This lets user extensions that have hooked the switch handler know if a task has been processed by the user extension before. If a user extension is created after a task is started it may not know it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/threadinitialize.c

    r485e80fa rf918e74  
    140140
    141141  /*
     142   * Clear the extensions area so extension users can determine
     143   * if they are linked to the thread. An extension user may
     144   * create the extension long after tasks have been created
     145   * so they cannot rely on the thread create user extension
     146   * call.
     147   */
     148
     149  if ( the_thread->extensions ) {
     150    int i;
     151    for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ )
     152      the_thread->extensions[i] = NULL;
     153  }
     154
     155  /*
    142156   *  General initialization
    143157   */
Note: See TracChangeset for help on using the changeset viewer.