package hack_parallel

  1. Overview
  2. Docs
Parallel and shared memory library

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.0.tar.gz
sha256=4ebcdd0c0b23735228d13bbf401799174771a747a5aeb4f35b64dcfc68079e29
md5=26aff6c969020c1d2f588c574dc7d08a

doc/hack_parallel.utils/Fork/index.html

Module Fork

* Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. *

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
OCaml

Innovation. Community. Security.