一呼百應, "one call, a hundred responses"
Loading...
Searching...
No Matches
performance_constraints.hpp
Go to the documentation of this file.
1#pragma once
2
13#include "common.hpp"
14
39
77#if ein_has_attribute(nonblocking)
78 #define ein_nonblocking [[clang::nonblocking]]
79 #define ein_blocking [[clang::blocking]]
80 #define ein_nonallocating [[clang::nonallocating]]
81 #define ein_allocating [[clang::allocating]]
82 #define ein_noalloc(x) [[clang::nonallocating(x)]]
83 #define ein_noblock(x) [[clang::nonblocking(x)]]
84#else
85 #define ein_nonblocking
86 #define ein_blocking
87 #define ein_nonallocating
88 #define ein_allocating
89 #define ein_noalloc(__x)
90 #define ein_noblock(__x)
91#endif
92