Program Listing for File proc_info.hpp¶
↰ Return to documentation for file (include/ripple/arch/proc_info.hpp
)
#ifndef RIPPLE_ARCH_PROC_INFO_HPP
#define RIPPLE_ARCH_PROC_INFO_HPP
#include <cstdint>
namespace ripple {
struct ProcInfo {
static constexpr uint32_t invalid = 0xFFFFFFFF;
constexpr auto is_invalid() const -> bool {
return package == invalid || core == invalid || thread == invalid;
}
uint32_t package = invalid;
uint32_t core = invalid;
uint32_t thread = invalid;
};
} // namespace ripple
#endif // RIPPLE_ARCH_PROC_INFO_HPP