Skip to content

Commit

Permalink
scheduleThreadOn: use TSO_LOCKED even on the non-threaded RTS
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmar committed Mar 30, 2011
1 parent cdbc494 commit a8051a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Schedule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1874,9 +1874,9 @@ scheduleThread(Capability *cap, StgTSO *tso)
void
scheduleThreadOn(Capability *cap, StgWord cpu USED_IF_THREADS, StgTSO *tso)
{
#if defined(THREADED_RTS)
tso->flags |= TSO_LOCKED; // we requested explicit affinity; don't
// move this thread from now on.
#if defined(THREADED_RTS)
cpu %= RtsFlags.ParFlags.nNodes;
if (cpu == cap->no) {
appendToRunQueue(cap,tso);
Expand Down

0 comments on commit a8051a4

Please sign in to comment.