Skip to content
Snippets Groups Projects
  • Nat Goodspeed's avatar
    8c6f7529
    STORM-1541: Hoist LLInstanceTracker::getMap_() to base getStatic(). · 8c6f7529
    Nat Goodspeed authored
    Generalize the notion of getting some chunk of "static" storage: introduce
    LLInstanceTrackerBase::getStatic() template method. Define StaticData struct
    containing the InstanceMap (or InstanceSet, for that specialization) along
    with the S32 that caused the VS2010 linker so much grief. Completely eliminate
    that S32 as an actual class-static member, qualifying all references with the
    struct returned by getStatic().
    In LLInstanceTrackerBase::getInstances(), use one std::map lookup instead of
    three.
    8c6f7529
    History
    STORM-1541: Hoist LLInstanceTracker::getMap_() to base getStatic().
    Nat Goodspeed authored
    Generalize the notion of getting some chunk of "static" storage: introduce
    LLInstanceTrackerBase::getStatic() template method. Define StaticData struct
    containing the InstanceMap (or InstanceSet, for that specialization) along
    with the S32 that caused the VS2010 linker so much grief. Completely eliminate
    that S32 as an actual class-static member, qualifying all references with the
    struct returned by getStatic().
    In LLInstanceTrackerBase::getInstances(), use one std::map lookup instead of
    three.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
llinstancetracker.cpp 1.74 KiB