package gapi-ocaml

  1. Overview
  2. Docs
A simple OCaml client for Google Services

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.4.9.tar.gz
sha256=e189067f3caf58235eee7f3f1b0f051d0192cd012e444c87492b2b502ad7c29c
md5=0f0c17b713f86d91d6be8ddf4a741745

doc/gapi-ocaml.netsys-local/Netsys_oothr/class-type-mtprovider/index.html

Class type Netsys_oothr.mtproviderSource

method single_threaded : bool

Whether this is a single-threaded program. In this case, a number of methods change their meaning, as described below.

method create_thread : 's 't. ('s -> 't) -> 's -> thread

In a multi-threaded program: Starts a new thread, and calls the passed function with the passed argument in the new thread (like Thread.create). In a single-threaded program: fails.

method self : thread

In a multi-threaded program: Returns the currently running thread. Subsequent calls of self can return different objects for the same thread, but the id method will always return the same number. In a single-threaded program: Returns a dummy object (see below).

method yield : unit -> unit

In a multi-threaded program: gives a hint that another thread should better run now. In a single-threaded program: this is a no-op.

method create_mutex : unit -> mutex

In a multi-threaded program: Creates a mutex and returns the object. In a single-threaded program: Returns a dummy mutex object (see below).

method create_condition : unit -> condition

In a multi-threaded program: Creates a condition variable and returns the object. In a single-threaded program: Returns a dummy variable (see below).