investigate/document thread safety of ECL's components
Both thread safety (can I run this component concurrently in different threads) and interrupt safety (can I interrupt this component from another thread via mp:interrupt-process
) need to be investigated.
The basic stuff should be all safe, but for example the compiler is apparently not thread safe and the DFFI looks like it might not be interrupt safe (see e.g. resize_call_stack() in ffi.d which writes thread-local data without interrupt protection).