hack_parallel

Parallel and shared memory library
IN THIS PACKAGE
Module Fork
val pre_fork_callbacks : ( unit -> unit ) list ref
val post_fork_child_callbacks : ( unit -> unit ) list ref

Sometimes it is more convenient to clear buffers in the children (to * avoid the double writing of data) instead of the parent on a successful * fork. We store those callbacks here.

val on_fork : ( unit -> unit ) -> unit
val post_fork_child : ( unit -> unit ) -> unit
val fork : unit -> int
val fork_and_log : ?reason:string -> unit -> int
val fork_and_may_log : ?reason:string -> unit -> int