Skip to content

Conversation

ethouris
Copy link
Collaborator

The loop that was rolling over the events in the container was incorrectly increasing the total counter over the number of actually filled items in the array. The loop was refactored to return the exact number of array items filled.

@ethouris ethouris added this to the v1.5.5 milestone Aug 19, 2025
@ethouris ethouris added Type: Bug Indicates an unexpected problem or unintended behavior [core] Area: Changes in SRT library core labels Aug 19, 2025
ethouris pushed a commit to ethouris/srt that referenced this pull request Aug 20, 2025
@cl-ment cl-ment merged commit 7497397 into Haivision:master Aug 21, 2025
8 of 13 checks passed
cl-ment pushed a commit that referenced this pull request Aug 26, 2025
…shared mutex (#3189)

* [MAINT] Added optional test discovery. Added improvements for attributes

* Enabled C++17 version of shared mutex when compiling in C++17 mode

* [core] Rework m_bListening to lock-free and m_GlobControlLock to use shared mutex

* Added UT discovery option to configure

* Changed enabled std::shared_mutex only if compiling with stdc++-sync

* Fixed problem with not updated sync.cpp SharedMutex

* Removed dead code

* Fixed review findings

* Demoted some locks on m_GlobControlLock to shared. Added false positive TSan info

* Merged changes from #3200

* Added a fix that should repair the problem reported in 3196. Still needs rechecks

* Fixed incorrect shared lock applied for a case when a new group is to be created (required exclusive)

---------

Co-authored-by: Mikolaj Malecki <mmalecki@haivision.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[core] Area: Changes in SRT library core Type: Bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants