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, 17 Aug 2015 23:52:58 +0000 (16:52 -0700)
commit9be90b70c99f7bf396d7b33bb5a43c52f4f232f9
treeb6f3d40c8e97ef90986d0f6495479ceec314df0d
parent4781c478630f3c19373aea69cca3d2efac8154ee
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