Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed getting next available unit from CUnitQueue #1333

Merged

Conversation

maxsharabayko
Copy link
Collaborator

This is one set of bugs related to #486

CUnitQueue::getNextAvailUnit() has several issues. They are described in the review comments to the code.

This PR consists of three commits:

  1. Minor chage: add size() and capacity() getters to CUnitQueue. Needed for unit tests.
  2. Added three unit tests describing issues with the current implementation of CUnitQueue.
  3. Fix of CUnitQueue::getNextAvailUnit()

@maxsharabayko maxsharabayko added Type: Bug Indicates an unexpected problem or unintended behavior [core] Area: Changes in SRT library core labels Jun 9, 2020
@maxsharabayko maxsharabayko added this to the v1.5.0 - Sprint 16 milestone Jun 9, 2020
@maxsharabayko maxsharabayko marked this pull request as ready for review June 9, 2020 07:43
srtcore/queue.cpp Outdated Show resolved Hide resolved
srtcore/queue.cpp Outdated Show resolved Hide resolved
srtcore/queue.cpp Show resolved Hide resolved
srtcore/queue.h Outdated Show resolved Hide resolved
Refers to issue Haivision#486 getting available uit to receive a packet
@ethouris ethouris added this to Reviewer Approved in GitHub Issues via automation Jun 10, 2020
@maxsharabayko maxsharabayko merged commit 76eb5b8 into Haivision:master Jun 11, 2020
GitHub Issues automation moved this from Reviewer Approved to Done Jun 11, 2020
@maxsharabayko maxsharabayko deleted the hotfix/unitqueue-getavail branch June 11, 2020 08:28
maxsharabayko added a commit that referenced this pull request Jun 11, 2020
@mbakholdina mbakholdina modified the milestones: v1.5.0 - Sprint 16, v1.4.2 Oct 14, 2020
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
No open projects
GitHub Issues
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants