• Docs >
  • Program Listing for File proc_info.hpp
Shortcuts

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

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples