model: move get_thread() implementations out of header
[model-checker.git] / librace.h
1 /** @file librace.h
2  *  @brief Interface to check normal memory operations for data races.
3  */
4
5 #ifndef __LIBRACE_H__
6 #define __LIBRACE_H__
7
8 #include <stdint.h>
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14         void store_8(void *addr, uint8_t val);
15         void store_16(void *addr, uint16_t val);
16         void store_32(void *addr, uint32_t val);
17         void store_64(void *addr, uint64_t val);
18
19         uint8_t load_8(void *addr);
20         uint16_t load_16(void *addr);
21         uint32_t load_32(void *addr);
22         uint64_t load_64(void *addr);
23
24 #ifdef __cplusplus
25 }
26 #endif
27
28 #endif /* __LIBRACE_H__ */