1 | #ifndef XTHREAD_H_ |
1 | #ifndef XTHREAD_H_ |
2 | #define XTHREAD_H_ |
2 | #define XTHREAD_H_ |
3 | |
3 | |
4 | /* whether word reads are potentially non-atomic. |
4 | /* whether word reads are potentially non-atomic. |
5 | * this is conservatice, likely most arches this runs |
5 | * this is conservative, likely most arches this runs |
6 | * on have atomic word read/writes. |
6 | * on have atomic word read/writes. |
7 | */ |
7 | */ |
8 | #ifndef WORDACCESS_UNSAFE |
8 | #ifndef WORDACCESS_UNSAFE |
9 | # if __i386 || __x86_64 |
9 | # if __i386 || __x86_64 |
10 | # define WORDACCESS_UNSAFE 0 |
10 | # define WORDACCESS_UNSAFE 0 |