Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bc9926e authored by tsaichristine's avatar tsaichristine
Browse files

Update comment for #handlePartialReset

Test: n/a
Change-Id: I79ff605047e74cdd29282ac24afc100fda4ea4d7
parent 98585a6c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -80,10 +80,12 @@ private:
    // Set of all StateListeners (objects listening for state changes)
    std::set<wp<StateListener>> mListeners;

    // Reset all state values in map to default state
    // Reset all state values in map to default state.
    void handleReset(const int64_t eventTimeNs);

    // Reset only the state value mapped to primary key to default state
    // Reset only the state value mapped to the given primary key to default state.
    // Partial resets are used when we only need to update the state of one primary
    // key instead of clearing/reseting every key in the map.
    void handlePartialReset(const int64_t eventTimeNs, const HashableDimensionKey& primaryKey);

    // Update the StateMap based on the received state value.