Changeset a6a8e11 in rtems-schedsim


Ignore:
Timestamp:
May 23, 2014, 3:57:07 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
737c775
Parents:
6425eb9
git-author:
Joel Sherrill <joel.sherrill@…> (05/23/14 15:57:07)
git-committer:
Joel Sherrill <joel.sherrill@…> (05/23/14 18:22:48)
Message:

lookup_task.c: Lock around getting executing id.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • schedsim/shell/shared/lookup_task.c

    r6425eb9 ra6a8e11  
    3939    #ifdef DOING_TASKS
    4040      if ( !strcmp( string, "SELF" ) ) {
    41         *id = _Thread_Executing->Object.id;
     41        _Thread_Disable_dispatch();
     42          *id = _Thread_Executing->Object.id;
     43        _Thread_Enable_dispatch();
    4244        return 0;
    4345      }
Note: See TracChangeset for help on using the changeset viewer.