#include <cstdlib>
#include <new>
Go to the source code of this file.
◆ CACHELINE_SIZE
#define CACHELINE_SIZE 64 |
◆ cyber_likely
#define cyber_likely |
( |
|
x | ) |
(x) |
◆ cyber_unlikely
#define cyber_unlikely |
( |
|
x | ) |
(x) |
◆ DEFINE_TYPE_TRAIT
#define DEFINE_TYPE_TRAIT |
( |
|
name, |
|
|
|
func |
|
) |
| |
Value:template <typename T> \
struct name { \
template <typename Class> \
static constexpr
bool Test(decltype(&
Class::func)*) { \
return true; \
} \
template <typename> \
static constexpr bool Test(...) { \
return false; \
} \
\
static constexpr
bool value = Test<T>(
nullptr); \
}; \
\
template <typename T> \
void(* func)(void *)
Definition: routine_context.h:41
apollo::cyber::base::std value
◆ CheckedCalloc()
void* CheckedCalloc |
( |
size_t |
num, |
|
|
size_t |
size |
|
) |
| |
|
inline |
◆ CheckedMalloc()
void* CheckedMalloc |
( |
size_t |
size | ) |
|
|
inline |
◆ cpu_relax()