-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlock_free_check.cpp
More file actions
39 lines (36 loc) · 998 Bytes
/
lock_free_check.cpp
File metadata and controls
39 lines (36 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <iostream>
#include <atomic>
int main()
{
#ifdef ATOMIC_BOOL_LOCK_FREE
std::cout << "ATOMIC_BOOL_LOCK_FREE" << std::endl;
#endif
#ifdef ATOMIC_CHAR_LOCK_FREE
std::cout << "ATOMIC_CHAR_LOCK_FREE" << std::endl;
#endif
#ifdef ATOMIC_CHAR16_T_LOCK_FREE
std::cout << "ATOMIC_CHAR16_T_LOCK_FREE" << std::endl;
#endif
#ifdef ATOMIC_CHAR32_T_LOCK_FREE
std::cout << "ATOMIC_CHAR32_T_LOCK_FREE" << std::endl;
#endif
#ifdef ATOMIC_WCHAR_T_LOCK_FREE
std::cout << "ATOMIC_WCHAR_T_LOCK_FREE" << std::endl;
#endif
#ifdef ATOMIC_SHORT_LOCK_FREE
std::cout << "ATOMIC_SHORT_LOCK_FREE" << std::endl;
#endif
#ifdef ATOMIC_INT_LOCK_FREE
std::cout << "ATOMIC_INT_LOCk_FREE" << std::endl;
#endif
#ifdef ATOMIC_LONG_LOCK_FREE
std::cout << "ATOMIC_LONG_LOCK_FREE" << std::endl;
#endif
#ifdef ATOMIC_LLONG_LOCK_FREE
std::cout << "ATOMIC_LLONG_LOCK_FREE" << std::endl;
#endif
#ifdef ATOMIC_POINTER_LOCK_FREE
std::cout << "ATOMIC_POINTER_LOCK_FREEE" << std::endl;
#endif
return 0;
}