Ruby: ruby_atomic.h File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Macros
ruby_atomic.h File Reference
`#include "ruby/atomic.h"`

Go to the source code of this file.

## Macros
#define | ATOMIC_ADD(var, val) RUBY_ATOMIC_ADD(var, val)
#define | ATOMIC_CAS(var, oldval, newval) RUBY_ATOMIC_CAS(var, oldval, newval)
#define | ATOMIC_DEC(var) RUBY_ATOMIC_DEC(var)
#define | ATOMIC_EXCHANGE(var, val) RUBY_ATOMIC_EXCHANGE(var, val)
#define | ATOMIC_FETCH_ADD(var, val) RUBY_ATOMIC_FETCH_ADD(var, val)
#define | ATOMIC_FETCH_SUB(var, val) RUBY_ATOMIC_FETCH_SUB(var, val)
#define | ATOMIC_INC(var) RUBY_ATOMIC_INC(var)
#define | ATOMIC_OR(var, val) RUBY_ATOMIC_OR(var, val)
#define | ATOMIC_PTR_CAS(var, oldval, newval) RUBY_ATOMIC_PTR_CAS(var, oldval, newval)
#define | ATOMIC_PTR_EXCHANGE(var, val) RUBY_ATOMIC_PTR_EXCHANGE(var, val)
#define | ATOMIC_SET(var, val) RUBY_ATOMIC_SET(var, val)
#define | ATOMIC_SIZE_ADD(var, val) RUBY_ATOMIC_SIZE_ADD(var, val)
#define | ATOMIC_SIZE_CAS(var, oldval, newval) RUBY_ATOMIC_SIZE_CAS(var, oldval, newval)
#define | ATOMIC_SIZE_DEC(var) RUBY_ATOMIC_SIZE_DEC(var)
#define | ATOMIC_SIZE_EXCHANGE(var, val) RUBY_ATOMIC_SIZE_EXCHANGE(var, val)
#define | ATOMIC_SIZE_INC(var) RUBY_ATOMIC_SIZE_INC(var)
#define | ATOMIC_SIZE_SUB(var, val) RUBY_ATOMIC_SIZE_SUB(var, val)
#define | ATOMIC_SUB(var, val) RUBY_ATOMIC_SUB(var, val)
#define | ATOMIC_VALUE_CAS(var, oldval, val) RUBY_ATOMIC_VALUE_CAS(var, oldval, val)
#define | ATOMIC_VALUE_EXCHANGE(var, val) RUBY_ATOMIC_VALUE_EXCHANGE(var, val)

## Macro Definition Documentation

## ◆ ATOMIC_ADD

#define ATOMIC_ADD | ( |  | var,
|  |  | val
| ) |  | RUBY_ATOMIC_ADD(var, val)

Definition at line 4 of file ruby_atomic.h.

## ◆ ATOMIC_CAS

#define ATOMIC_CAS | ( |  | var,
|  |  | oldval,
|  |  | newval
| ) |  | RUBY_ATOMIC_CAS(var, oldval, newval)

Definition at line 5 of file ruby_atomic.h.

## ◆ ATOMIC_DEC

#define ATOMIC_DEC | ( |  | var | ) | RUBY_ATOMIC_DEC(var)

Definition at line 6 of file ruby_atomic.h.

## ◆ ATOMIC_EXCHANGE

#define ATOMIC_EXCHANGE | ( |  | var,
|  |  | val
| ) |  | RUBY_ATOMIC_EXCHANGE(var, val)

Definition at line 7 of file ruby_atomic.h.

## ◆ ATOMIC_FETCH_ADD

#define ATOMIC_FETCH_ADD | ( |  | var,
|  |  | val
| ) |  | RUBY_ATOMIC_FETCH_ADD(var, val)

Definition at line 8 of file ruby_atomic.h.

## ◆ ATOMIC_FETCH_SUB

#define ATOMIC_FETCH_SUB | ( |  | var,
|  |  | val
| ) |  | RUBY_ATOMIC_FETCH_SUB(var, val)

Definition at line 9 of file ruby_atomic.h.

## ◆ ATOMIC_INC

#define ATOMIC_INC | ( |  | var | ) | RUBY_ATOMIC_INC(var)

Definition at line 10 of file ruby_atomic.h.

## ◆ ATOMIC_OR

#define ATOMIC_OR | ( |  | var,
|  |  | val
| ) |  | RUBY_ATOMIC_OR(var, val)

Definition at line 11 of file ruby_atomic.h.

## ◆ ATOMIC_PTR_CAS

#define ATOMIC_PTR_CAS | ( |  | var,
|  |  | oldval,
|  |  | newval
| ) |  | RUBY_ATOMIC_PTR_CAS(var, oldval, newval)

Definition at line 12 of file ruby_atomic.h.

## ◆ ATOMIC_PTR_EXCHANGE

#define ATOMIC_PTR_EXCHANGE | ( |  | var,
|  |  | val
| ) |  | RUBY_ATOMIC_PTR_EXCHANGE(var, val)

Definition at line 13 of file ruby_atomic.h.

## ◆ ATOMIC_SET

#define ATOMIC_SET | ( |  | var,
|  |  | val
| ) |  | RUBY_ATOMIC_SET(var, val)

Definition at line 14 of file ruby_atomic.h.

## ◆ ATOMIC_SIZE_ADD

#define ATOMIC_SIZE_ADD | ( |  | var,
|  |  | val
| ) |  | RUBY_ATOMIC_SIZE_ADD(var, val)

Definition at line 15 of file ruby_atomic.h.

## ◆ ATOMIC_SIZE_CAS

#define ATOMIC_SIZE_CAS | ( |  | var,
|  |  | oldval,
|  |  | newval
| ) |  | RUBY_ATOMIC_SIZE_CAS(var, oldval, newval)

Definition at line 16 of file ruby_atomic.h.

## ◆ ATOMIC_SIZE_DEC

#define ATOMIC_SIZE_DEC | ( |  | var | ) | RUBY_ATOMIC_SIZE_DEC(var)

Definition at line 17 of file ruby_atomic.h.

## ◆ ATOMIC_SIZE_EXCHANGE

#define ATOMIC_SIZE_EXCHANGE | ( |  | var,
|  |  | val
| ) |  | RUBY_ATOMIC_SIZE_EXCHANGE(var, val)

Definition at line 18 of file ruby_atomic.h.

## ◆ ATOMIC_SIZE_INC

#define ATOMIC_SIZE_INC | ( |  | var | ) | RUBY_ATOMIC_SIZE_INC(var)

Definition at line 19 of file ruby_atomic.h.

## ◆ ATOMIC_SIZE_SUB

#define ATOMIC_SIZE_SUB | ( |  | var,
|  |  | val
| ) |  | RUBY_ATOMIC_SIZE_SUB(var, val)

Definition at line 20 of file ruby_atomic.h.

## ◆ ATOMIC_SUB

#define ATOMIC_SUB | ( |  | var,
|  |  | val
| ) |  | RUBY_ATOMIC_SUB(var, val)

Definition at line 21 of file ruby_atomic.h.

## ◆ ATOMIC_VALUE_CAS

#define ATOMIC_VALUE_CAS | ( |  | var,
|  |  | oldval,
|  |  | val
| ) |  | RUBY_ATOMIC_VALUE_CAS(var, oldval, val)

Definition at line 22 of file ruby_atomic.h.

## ◆ ATOMIC_VALUE_EXCHANGE

#define ATOMIC_VALUE_EXCHANGE | ( |  | var,
|  |  | val
| ) |  | RUBY_ATOMIC_VALUE_EXCHANGE(var, val)

Definition at line 23 of file ruby_atomic.h.