Initialize the thread system early in the cold load.
authorMatt Birkholz <puck@birchwood-abbey.net>
Mon, 6 Jul 2015 00:58:03 +0000 (17:58 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Mon, 6 Jul 2015 05:45:44 +0000 (22:45 -0700)
commit4c259bc089e6b1ed7862955f855e89d0389fb30b
tree711ca3d3becc767a8ea0d85fa76fb7179036a6af
parentbe706dee6fc48f01df4f94ba68a368ea77c14584
Initialize the thread system early in the cold load.

Thus with-thread-mutex-lock can be used during initialization of most
packages.  Avoid using the global set-interrupt-enables! binding in
dynamic-wind because it is now called so early.

This anticipates removing without-interrupts from gcfinal.scm and thus
calling with-thread-mutex-lock during make-gc-finalizer, e.g. during
the initialization of the (runtime string) package.
src/runtime/conpar.scm
src/runtime/make.scm
src/runtime/thread.scm
src/runtime/wind.scm