package hack_parallel

  1. Overview
  2. Docs
Parallel and shared memory library

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.1.tar.gz
md5=ba7c72bc207e326b72e294fc76f6ad2c
sha512=5020d47f97bea2f88e2a40411894d03232a7f2282606926c93c7d4c96d72e94a966be852897a9b16f7e0893ba376512045abb9d93020a7c03c3def4f3d918f8e

doc/hack_parallel.utils/Daemon/index.html

Module DaemonSource

* 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 root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. *

Type-safe versions of the channels in Pervasives.

Sourcetype 'a in_channel
Sourcetype 'a out_channel
Sourcetype ('in_, 'out) channel_pair = 'in_ in_channel * 'out out_channel
Sourceval to_channel : 'a out_channel -> ?flags:Marshal.extern_flags list -> ?flush:bool -> 'a -> unit
Sourceval from_channel : ?timeout:Timeout.t -> 'a in_channel -> 'a
Sourceval flush : 'a out_channel -> unit
Sourceval descr_of_in_channel : 'a in_channel -> Unix.file_descr
Sourceval descr_of_out_channel : 'a out_channel -> Unix.file_descr
Sourceval close_out : 'a out_channel -> unit
Sourceval output_string : 'a out_channel -> string -> unit
Sourceval close_in : 'a in_channel -> unit
Sourceval input_char : 'a in_channel -> char
Sourceval input_value : 'a in_channel -> 'b

Spawning new process

Sourcetype ('param, 'input, 'output) entry
Sourceval register_entry_point : string -> ('param -> ('input, 'output) channel_pair -> unit) -> ('param, 'input, 'output) entry
Sourcetype ('in_, 'out) handle = {
  1. channels : ('in_, 'out) channel_pair;
  2. pid : int;
}
Sourceval devnull : unit -> ('a, 'b) handle
Sourceval fd_of_path : string -> Unix.file_descr
Sourceval null_fd : unit -> Unix.file_descr
Sourceval fork : ?channel_mode:[ `pipe | `socket ] -> (Unix.file_descr * Unix.file_descr) -> ('param -> ('input, 'output) channel_pair -> unit) -> 'param -> ('output, 'input) handle
Sourceval spawn : ?channel_mode:[ `pipe | `socket ] -> (Unix.file_descr * Unix.file_descr * Unix.file_descr) -> ('param, 'input, 'output) entry -> 'param -> ('output, 'input) handle
Sourceval close : ('a, 'b) handle -> unit
Sourceval kill : ('a, 'b) handle -> unit
Sourceval check_entry_point : unit -> unit
OCaml

Innovation. Community. Security.