threading: introduce thread safe ECL_UNWIND_PROTECT macro and use where needed
Disabling interrupts during execution of cleanup forms of unwind-protect caused problems in some cases. Hence only do this where needed, i.e. for freeing resources (such as locks or files) shared between multiple threads or processes.
Please register or sign in to comment