File: atomic-integer.md

package info (click to toggle)
bordeaux-threads 0.9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 672 kB
  • sloc: lisp: 4,765; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 559 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
date: 2022-01-07T08:00:00Z
title: Class ATOMIC-INTEGER
weight: 1
---

#### Class precedence list:

atomic-integer, t.

#### Description:

This class represents an unsigned machine word that allows atomic
increment, decrement and swap.

#### See also:

[**make-atomic-integer**](../make-atomic-integer)

#### Notes:

Depending on the host implementation, the size of the integer is
either 32 or 64 bits.

This class is unavailble on Lisp implementations that lack underlying
atomic primitives. On some hosts, **atomic-integer** is implemented
using locks.