[project @ 2002-02-15 07:37:55 by sof]
authorsof <unknown>
Fri, 15 Feb 2002 07:37:55 +0000 (07:37 +0000)
committersof <unknown>
Fri, 15 Feb 2002 07:37:55 +0000 (07:37 +0000)
commit619cd23c12cc4074b679bce4d8a005e5f42ccadf
tree950dea43afc18e08e1dc719d1d99a5b07feec9f7
parentc92c748727ef6cf3ea70bc065aecb31d513c305d
[project @ 2002-02-15 07:37:55 by sof]
Distinguish between the scheduling of a new thread from within
the RTS (e.g., via forkIO, running finalizers etc) and scheduling
of a thread that's created via the RtsAPI -- the latter
now uses scheduleExtThread(), the rest scheduleThread().

Why the distinction? Because the former will in threaded builds create
a worker OS thread, while the latter won't. (There's an added
wrinkle -- main() will also use scheduleThread()).
ghc/includes/SchedAPI.h