mirror of
https://review.haiku-os.org/haiku
synced 2025-02-11 00:00:38 +01:00
33 lines
636 B
C
33 lines
636 B
C
|
/* Modules Definitions
|
||
|
**
|
||
|
** Distributed under the terms of the OpenBeOS License.
|
||
|
*/
|
||
|
|
||
|
#ifndef _FSSH_ATOMIC_H
|
||
|
#define _FSSH_ATOMIC_H
|
||
|
|
||
|
|
||
|
#include "fssh_types.h"
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
|
||
|
int32_t fssh_atomic_set(vint32_t *value, int32_t newValue);
|
||
|
int32_t fssh_atomic_test_and_set(vint32_t *value, int32_t newValue,
|
||
|
int32_t testAgainst);
|
||
|
int32_t fssh_atomic_add(vint32_t *value, int32_t addValue);
|
||
|
int32_t fssh_atomic_and(vint32_t *value, int32_t andValue);
|
||
|
int32_t fssh_atomic_or(vint32_t *value, int32_t orValue);
|
||
|
int32_t fssh_atomic_get(vint32_t *value);
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
|
||
|
#endif /* _FSSH_ATOMIC_H */
|