Skip to content

Commit

Permalink
Remove asserts for Chip Task lock in SystemStats.cpp (#25656)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinez-silabs authored and pull[bot] committed Dec 11, 2023
1 parent 22050a6 commit 0fa5104
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/system/SystemStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,29 +60,21 @@ count_t sHighWatermarks[kNumEntries];

const Label * GetStrings()
{
assertChipStackLockedByCurrentThread();

return sStatsStrings;
}

count_t * GetResourcesInUse()
{
assertChipStackLockedByCurrentThread();

return sResourcesInUse;
}

count_t * GetHighWatermarks()
{
assertChipStackLockedByCurrentThread();

return sHighWatermarks;
}

void UpdateSnapshot(Snapshot & aSnapshot)
{
assertChipStackLockedByCurrentThread();

memcpy(&aSnapshot.mResourcesInUse, &sResourcesInUse, sizeof(aSnapshot.mResourcesInUse));
memcpy(&aSnapshot.mHighWatermarks, &sHighWatermarks, sizeof(aSnapshot.mHighWatermarks));

Expand Down

0 comments on commit 0fa5104

Please sign in to comment.