Module Core_thread.For_testing

val create_should_raise : bool Core__.Import.ref

If !create_should_raise = true, then create raises rather than creating a thread. This is useful for testing how code behaves upon thread-creation failure, which can happen, e.g., due to lack of memory.