package hack_parallel

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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.