ADTF  3.18.2
workspace/conan/dev_essential/1.3.3/dw/stable/package/37682420cd166e229516a41c8d6a139a0b13e1e1/include/a_util/base/types.h
Go to the documentation of this file.
1 
15 #ifndef A_UTIL_UTIL_BASE_TYPES_H
16 #define A_UTIL_UTIL_BASE_TYPES_H
17 
18 #include <a_util/base/enums.h>
19 
20 #include <atomic>
21 
27 typedef void* handle_t; /* h */
29 typedef const void* const_handle_t;
31 typedef std::int64_t timestamp_t; /* n */
33 #ifdef __QNX__
34 typedef std::atomic_int_fast64_t atomic_timestamp_t;
35 #else
36 typedef std::atomic<timestamp_t> atomic_timestamp_t;
37 #endif
38 
39 namespace a_util {
50 template <typename T>
51 void maybe_unused(T&&)
52 {
53 }
54 
55 } // namespace a_util
57 #endif /* A_UTIL_UTIL_BASE_TYPES_H */
Several enums for project wide use.
void maybe_unused(T &&)
Mimics C++17 attribute maybe_unused to silence compiler warnings on potentially unused enitities.
std::int64_t timestamp_t
Type of a timestamp value. If not otherwise stated, always in microseconds.
Serves as the root component, with common functionality documented in core functionality.
Definition: base.h:24