~ubuntu-branches/ubuntu/trusty/ocamlnet/trusty

« back to all changes in this revision

Viewing changes to src/netshm/netshm.mli

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu
  • Date: 2011-09-02 14:12:33 UTC
  • mfrom: (18.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110902141233-zbj0ygxb92u6gy4z
Tags: 3.4-1
* New upstream release
  - add a new NetcgiRequire directive to ease dependency management
    (Closes: #637147)
  - remove patches that were applied upstream:
    + Added-missing-shebang-lines-in-example-shell-scripts
    + Try-also-ocamlc-for-POSIX-threads

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
(* $Id: netshm.mli 999 2006-09-19 20:28:01Z gerd $ *)
 
1
(* $Id: netshm.mli 1159 2007-11-29 13:19:21Z gerd $ *)
2
2
 
3
3
(** Shared memory for O'Caml programs using multi-processing *)
4
4
 
139
139
    * for the number of elements the table will contain. The data
140
140
    * structure is then created such that this many elements can be added
141
141
    * without needing expensive data reorganization.
 
142
    *
 
143
    * Special note for using [shm_table] with multiple processes: Every
 
144
    * process must create its own [shm_descr], and every process must
 
145
    * call [manage] to manage it. It is not sufficient to just fork
 
146
    * a new process, and to keep using the already existing
 
147
    * [shm_descr] or [shm_table] in the subprocess. (This doesn't work
 
148
    * because the underlying file descriptor would be shared.)
142
149
   *)
143
150
 
144
151
val group : shm_table -> ('a -> 'b ) -> 'a -> 'b