Dev Essential
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1
14
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
27typedef void* handle_t; /* h */
29typedef const void* const_handle_t;
31typedef std::int64_t timestamp_t; /* n */
33#ifdef __QNX__
34typedef std::atomic_int_fast64_t atomic_timestamp_t;
35#else
36typedef std::atomic<timestamp_t> atomic_timestamp_t;
37#endif
38
39namespace a_util {
50template <typename T>
51void maybe_unused(T&&)
52{
53}
54
55} // namespace a_util
57#endif /* A_UTIL_UTIL_BASE_TYPES_H */
void maybe_unused(T &&)
Definition types.h:51
std::atomic< timestamp_t > atomic_timestamp_t
Type of an atomic timestamp_t.
Definition types.h:36
std::int64_t timestamp_t
Type of a timestamp value. If not otherwise stated, always in microseconds.
Definition types.h:31
void * handle_t
Type of a handle value.
Definition types.h:27
const void * const_handle_t
Type of a const handle value.
Definition types.h:29
Serves as the root component, with common functionality documented in core functionality.
Definition base.h:24