package ocaml-solo5-cross-aarch64

  1. Overview
  2. Docs
OCaml cross-compiler to the freestanding 64-bit ARM Solo5 backend

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v1.2.0.tar.gz
md5=4d07934aea2d32b77ba1b8bb062c6594
sha512=2ec008da088f7998d024b790679605813f1954de36b999031db0b003706e67f3f13554e93fa07be00f26633ea27c2b2f9f987e8b08f85c63f956bfbc306bd620

doc/stdlib/Stdlib/Atomic/Loc/index.html

Module Atomic.LocSource

Atomic "locations", such as record fields.

Sourcetype 'a t = 'a atomic_loc

This module exposes a dedicated type 'a Atomic.Loc.t for atomic locations (storing a value of type 'a) inside objects that may not be atomic references. It is used in particular for atomic record fields: if a record r has an atomic field f of type foo, then [%atomic.loc r.f] has type foo Atomic.Loc.t.

The API below mirrors the API to access atomic references, see the documentation above for more information.

Sourceval get : 'a t -> 'a
Sourceval set : 'a t -> 'a -> unit
Sourceval exchange : 'a t -> 'a -> 'a
Sourceval compare_and_set : 'a t -> 'a -> 'a -> bool
Sourceval fetch_and_add : int t -> int -> int
Sourceval incr : int t -> unit
Sourceval decr : int t -> unit