package devkit

  1. Overview
  2. Docs
Development kit - general purpose library

Install

Dune Dependency

Authors

Maintainers

Sources

devkit-1.3.tbz
sha256=dae965685dceed47ad8e9844f12fe707dafdf2c3bdd46d0431d5b4d1e7754b23
sha512=b94ade804d751db87434042bbaa821fa8e82e233820a76806f910e2da040094b137e88a3579911a1626930912622b064c776ddbcb6991fb7111021ebf6553fdc

doc/devkit.core/Devkit_core/Pid/index.html

Module Devkit_core.PidSource

Unique process identification

Sourcetype t = private {
  1. host : string;
    (*

    machine hostname (no spaces allowed)

    *)
  2. id : int;
    (*

    process id

    *)
  3. name : string;
    (*

    application id (no spaces allowed), for information.

    *)
  4. stamp : int;
    (*

    stamp for uniqueness to guard against pid reuse

    *)
}
Sourceval dummy : t

dummy instance, use sparingly

Sourceval show : t -> string
  • returns

    pretty-printed pid (human readable)

Sourceval host : t -> string
  • returns

    machine hostname

Sourceval name : t -> string
  • returns

    application name

Sourceval to_string : t -> string
  • returns

    string representation of pid, can be read back by parse_pid_exn

Sourceval compare : t -> t -> int
Sourceval equal : t -> t -> bool
Sourceval parse_exn : string -> t

Current process identifier

Sourceval set_name : string -> unit
Sourceval self : unit -> t
Sourceval self_name : unit -> string
Sourceval self_as : string -> t
Sourceval show_self : unit -> string
OCaml

Innovation. Community. Security.