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
Document SDLPrioritizedObjectCollection priority lower is 'higher' #143
Comments
@hugh22 @Heath-FoMoCo Are lower numbers higher priority? Because that would mean this is functional then, just semantically weird. |
Nope, that looks like an error. The current spec (which I suspect will need changing) is to use the number of the service type as the priority with higher values going first. |
Okay, thanks, just wanted to make sure |
I plan to hold off fixing this until unit tests are merged so that I can test the fix properly. |
The current specification says, in section 4.
I don't have an exact reference because I rewrote the protocol spec for GitHub but my wording is
|
@justinjdickow @hugh22 So...it's functional then? Just semantically odd? I can just change the test for high priority to be a lower number, and it should pass. |
@joeljfischer Assuming the service number is always used as the priority, it would seem it is functionally correct |
Alright, I'll alter the test then. This should be documented within the |
Alright, I'll alter the test then. This should be documented within the |
Yeah, that's right. It got turned around so that an RPC can pre-empt video streams. |
Fix regression on return type on `nextObject` from `instancetype` to `id` Fixes #143
It should retrieve high priority objects first, but instead retrieves low priority objects first.Because this is used with service numbers, lower numbers indicate higher priority. Since this semantically odd, it should be documented within the class.
The text was updated successfully, but these errors were encountered: