Skip to content
Snippets Groups Projects
  • Lioncash's avatar
    core: Make the live Cpu instances unique_ptrs instead of shared_ptrs · 59f872a8
    Lioncash authored
    There's no need for shared ownership here, as the only owning class
    instance of those Cpu instances is the System class itself. We can also
    make the thread_to_cpu map use regular pointers instead of shared_ptrs,
    given that the Cpu instances will always outlive the cases where they're
    used with that map.
    59f872a8