Functions | |
| POSEXTERN void POSCALL | posAtomicSet (POSATOMIC_t *var, INT_t value) |
| POSEXTERN INT_t POSCALL | posAtomicGet (POSATOMIC_t *var) |
| POSEXTERN INT_t POSCALL | posAtomicAdd (POSATOMIC_t *var, INT_t value) |
| POSEXTERN INT_t POSCALL | posAtomicSub (POSATOMIC_t *var, INT_t value) |
| POSEXTERN INT_t POSCALL posAtomicAdd | ( | POSATOMIC_t * | var, | |
| INT_t | value | |||
| ) |
Atomic Variable Function. Adds a value onto the current value of the atomic variable.
| var | pointer to the atomic variable. | |
| value | value that shall be added to the atomic variable. |
| POSEXTERN INT_t POSCALL posAtomicGet | ( | POSATOMIC_t * | var | ) |
Atomic Variable Function. Returns the current value of an atomic variable.
| var | pointer to the atomic variable which value shall be read and returned. |
| POSEXTERN void POSCALL posAtomicSet | ( | POSATOMIC_t * | var, | |
| INT_t | value | |||
| ) |
Atomic Variable Function. Sets an atomic variable to the specified value.
| var | pointer to the atomic variable that shall be set. | |
| value | the value the atomic variable shall be set to. |
| POSEXTERN INT_t POSCALL posAtomicSub | ( | POSATOMIC_t * | var, | |
| INT_t | value | |||
| ) |
Atomic Variable Function. Substracts a value from the current value of the atomic variable.
| var | pointer to the atomic variable. | |
| value | value that shall be substracted from the atomic variable. |
1.5.4