val create_should_raise : bool Caml.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.
Thread.For_testing
val create_should_raise : bool Caml.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.