Create a wrapper that tracks contention metrics

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • N&O 2025-07-07
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Introduce ObservableMutex that can wrap a std::mutex or std::shared_mutex and collect contention metrics. Also, introduce unit-tests that verify the following:

      • The number of acquisitions is only updated if acquisition doesn’t throw.
      • The wait time is only measured for contended acquisitions.
      • The number of contended acquisitions is properly updated.

            Assignee:
            Nicole Bain
            Reporter:
            Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: