Changeset 75aef54 in rtems


Ignore:
Timestamp:
Mar 17, 2016, 5:16:23 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f5bb2991
Parents:
d37adfe5
git-author:
Sebastian Huber <sebastian.huber@…> (03/17/16 05:16:23)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/17/16 07:27:47)
Message:

posix: Avoid Giant lock in sched_yield()

Update #2555.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/sched_yield.c

    rd37adfe5 r75aef54  
    2727int sched_yield( void )
    2828{
    29   _Thread_Disable_dispatch();
    30     _Thread_Yield( _Thread_Executing );
    31   _Thread_Enable_dispatch();
     29  Per_CPU_Control *cpu_self;
     30
     31  cpu_self = _Thread_Dispatch_disable();
     32    _Thread_Yield( _Per_CPU_Get_executing( cpu_self ) );
     33  _Thread_Dispatch_enable( cpu_self );
    3234  return 0;
    3335}
Note: See TracChangeset for help on using the changeset viewer.