[project @ 2000-08-25 13:12:07 by simonmar]
Change the way threadDelay# is implemented. We now use a list of sleeping threads sorted in increasing order by the time at which they will wake up. This avoids us having to traverse the entire queue on each context switch.
Showing
- ghc/includes/TSO.h 1 addition, 5 deletionsghc/includes/TSO.h
- ghc/rts/Itimer.c 16 additions, 6 deletionsghc/rts/Itimer.c
- ghc/rts/Itimer.h 4 additions, 1 deletionghc/rts/Itimer.h
- ghc/rts/PrimOps.hc 19 additions, 11 deletionsghc/rts/PrimOps.hc
- ghc/rts/Schedule.c 73 additions, 28 deletionsghc/rts/Schedule.c
- ghc/rts/Schedule.h 14 additions, 2 deletionsghc/rts/Schedule.h
- ghc/rts/Select.c 136 additions, 153 deletionsghc/rts/Select.c
- ghc/rts/Signals.c 5 additions, 1 deletionghc/rts/Signals.c
Loading
Please register or sign in to comment