Go to the source code of this file.
◆ atomic_dec
#define atomic_dec |
( |
|
v | ) |
(((v)->counter)--) |
atomic_dec - decrement atomic variable
- Parameters
-
Atomically decrements v by 1. Note that the guaranteed useful range of an atomic_t is only 24 bits.
Definition at line 50 of file atomic.h.
◆ atomic_inc
#define atomic_inc |
( |
|
v | ) |
(((v)->counter)++) |
atomic_inc - increment atomic variable
- Parameters
-
Atomically increments v by 1. Note that the guaranteed useful range of an atomic_t is only 24 bits.
Definition at line 41 of file atomic.h.
◆ ATOMIC_INIT
#define ATOMIC_INIT |
( |
|
i | ) |
{ (i) } |
◆ atomic_read
#define atomic_read |
( |
|
v | ) |
((v)->counter) |
atomic_read - read atomic variable
- Parameters
-
Atomically reads the value of v. Note that the guaranteed useful range of an atomic_t is only 24 bits.
Definition at line 22 of file atomic.h.
◆ atomic_set
#define atomic_set |
( |
|
v, |
|
|
|
i |
|
) |
| (((v)->counter) = (i)) |
atomic_set - set atomic variable
- Parameters
-
v | pointer of type atomic_t |
i | required value |
Atomically sets the value of v to i. Note that the guaranteed useful range of an atomic_t is only 24 bits.
Definition at line 32 of file atomic.h.