sig
type shm_descr
type shm_type = [ `File | `POSIX ]
val supported_types : Netshm.shm_type list
type shm_name = [ `File of string | `POSIX of string * string ]
val shm_type_of_name : Netshm.shm_name -> Netshm.shm_type
val open_shm :
?unique:bool ->
Netshm.shm_name -> Unix.open_flag list -> int -> Netshm.shm_descr
val create_unique_shm : Netshm.shm_name -> int -> Netshm.shm_descr
val name_of_shm : Netshm.shm_descr -> Netshm.shm_name
val close_shm : Netshm.shm_descr -> unit
val unlink_shm : Netshm.shm_name -> unit
val chmod_shm : Netshm.shm_descr -> int -> unit
val chown_shm : Netshm.shm_descr -> int -> int -> unit
type locking_method = [ `No_locking | `Record_locking ]
val best_locking_method : Netshm.shm_type -> Netshm.locking_method
type shm_table
type int32_array =
(int32, Bigarray.int32_elt, Bigarray.c_layout) Bigarray.Array1.t
exception Corrupt_file of string
exception Deadlock
val manage :
?pagesize:int ->
?init:int ->
Netshm.locking_method -> Netshm.shm_descr -> Netshm.shm_table
val group : Netshm.shm_table -> ('a -> 'b) -> 'a -> 'b
val add : Netshm.shm_table -> int32 -> Netshm.int32_array -> unit
val find : Netshm.shm_table -> int32 -> Netshm.int32_array
val find_all : Netshm.shm_table -> int32 -> Netshm.int32_array list
val mem : Netshm.shm_table -> int32 -> bool
val remove : Netshm.shm_table -> int32 -> unit
val replace : Netshm.shm_table -> int32 -> Netshm.int32_array -> unit
val iter :
(int32 -> Netshm.int32_array -> unit) -> Netshm.shm_table -> unit
val iter_keys : (int32 -> unit) -> Netshm.shm_table -> unit
val fold :
(int32 -> Netshm.int32_array -> 'a -> 'a) -> Netshm.shm_table -> 'a -> 'a
val length : Netshm.shm_table -> int
exception Next
exception Break
val read_blocks :
Netshm.shm_table -> int32 -> (Netshm.int32_array option -> unit) -> unit
type write_op = [ `Remove_binding ]
type ctrl_op = [ `Nop | `Remove_binding ]
val write_blocks :
Netshm.shm_table ->
Netshm.write_op list ->
int32 -> (Netshm.int32_array option -> Netshm.ctrl_op) -> unit
val dump : Netshm.shm_table -> unit
val bigarray : int array -> Netshm.int32_array
val memory :
Netshm.shm_table ->
(int32, Bigarray.int32_elt, Bigarray.c_layout) Bigarray.Array2.t
end