cvs commit: fptools/ghc/rts OSThreads.c OSThreads.h Capability.c
Capability.h Makefile Schedule.c
Sigbjorn Finne
sof@glass.cse.ogi.edu
Thu, 31 Jan 2002 03:18:08 -0800
sof 2002/01/31 03:18:07 PST
Modified files:
ghc/rts Makefile Schedule.c
Added files:
ghc/rts OSThreads.c OSThreads.h Capability.c
Capability.h
Log:
First steps towards implementing better interop between
Concurrent Haskell and native threads.
- factored out Capability handling into a separate source file
(only the SMP build uses multiple capabilities tho).
- factored out OS/native threads handling into a separate
source file, OSThreads.{c,h}. Currently, just a pthreads-based
implementation; Win32 version to follow.
- scheduler code now distinguishes between multi-task threaded
code (SMP) and single-task threaded code ('threaded RTS'),
but sharing code between these two modes whenever poss.
i.e., just a first snapshot; the bulk of the transitioning code
remains to be implemented.
Revision Changes Path
1.60 +9 -1 fptools/ghc/rts/Makefile
1.114 +73 -102 fptools/ghc/rts/Schedule.c