Skip to content

Commit

Permalink
Removed tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
kayceesrk committed May 12, 2013
1 parent 3eea595 commit 4a46649
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions libraries/base/LwConc/Substrate.hs
Expand Up @@ -495,13 +495,13 @@ yieldControlActionRts sc = Exception.catch (atomically $ do
-- sets the SCont status to Yielded.
SContSwitched Yielded -> return ()

-- This is a corner case, but is very well possible. Consider that the
-- Scont (sc), was blocked on a foreign call, while its scheduler was
-- resumed (See rts/Schedule.c:resumeThread). When sc wakes up it has to
-- voluntarily give up control. But sc runs to completion and marks the
-- thread it is switching to that is should give up the scheduler (See
-- rts/PrimOps.cmm:stg_atomicSwitch). Now, the status of sc is set to
-- "SContSwitched Completed". Hence, this branch.
-- This is a corner case, but is very well possible. Consider that the
-- Scont (sc), was blocked on a foreign call, while its scheduler was
-- resumed (See rts/Schedule.c:resumeThread). When sc wakes up it has to
-- voluntarily give up control. But sc runs to completion and marks the
-- thread it is switching to that is should give up the scheduler (See
-- rts/PrimOps.cmm:stg_atomicSwitch). Now, the status of sc is set to
-- "SContSwitched Completed". Hence, this branch.
otherwise -> return ()

switch <- getYieldControlActionSCont sc
Expand Down

0 comments on commit 4a46649

Please sign in to comment.