jon.recoil.org

Module Callback.SafeSource

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

Sourceval register : string -> 'a @ portable -> unit @@ portable

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

The provided value must be portable as registered values may be looked up from any domain.

Sourceval register_exception : string -> exn @ portable -> unit @@ portable

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

The provided exception must be portable as registered exceptions may be looked up from any domain.