jon.recoil.org

Module Printexc.SafeSource

Submodule containing non-backwards-compatible functions which enforce thread safety via modes.

Sourceval register_printer : (exn -> string option) @ portable -> unit

Like register_printer, but is safe to use in the presence of multiple domains.

The provided closure must be portable as exception printers may be called from any domain, not just the one that it's registered on.

Sourceval set_uncaught_exception_handler : (exn -> Stdlib.Printexc.raw_backtrace -> unit) @ portable -> unit

Like set_uncaught_exception_handler, but is safe to use in the presence of multiple domains.

The provided closure must be portable as exception handlers may be called from any domain, not just the one that it's registered on.