File: atomic-integer-incf.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 (42 lines) | stat: -rw-r--r-- 1,011 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
date: 2022-01-07T08:00:00Z
title: Function ATOMIC-INTEGER-INCF
weight: 6
---

#### Syntax:

**atomic-integer-incf** atomic-integer *&optional* (delta 1) => new-value

#### Arguments and values:

*atomic-integer* -> an [**atomic-integer**](../atomic-integer)
object.\
*delta* -> an integer.\
*new-value* -> a non-negative integer.

#### Description

Increments the value of `atomic-integer` by `delta`.

Returns the new value of `atomic-integer`.

#### Exceptional situations:

Signals an error of type
[**type-error**](http://www.lispworks.com/documentation/HyperSpec/Body/e_tp_err.htm#type-error)
if `atomic-integer` is not an [**atomic-integer**](../atomic-integer)
object.\
Signals an error of type
[**type-error**](http://www.lispworks.com/documentation/HyperSpec/Body/e_tp_err.htm#type-error)
if `delta` is not an integer.

#### See also:

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

#### Notes:

None.