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
Test suite case for threadPlayer? #5661
Comments
Actually, it was pretty easy after I got past PauseStream's defenses. The trick was to reset
Can be simplified a bit more, since I'm not resetting anything or need external access:
|
Point A: Point B: If the Routine goes back onto the clock, then the Task object is broken. So it is necessary for CondVar / Condition / FlowVar etc. to be able to find I think your test case is over-complicated. |
I'm closing this since I know what I wanted to know. If somebody feels like a testsuite case should be added, feel free to reopen. |
Motivation
This is more of a question, but there was a large-ish commit in 2012 that added the rather obscure threadPlayer feature, taking a new slot in Thread.
I think I understand roughly what it is for, but I failed to write an example that would showcase its necessity by altering the threadPlayer of a PausedStream. What I tried:
Clearly that doesn't actually break it because the routine is not itself being scheduled on a clock. But I'm having trouble seeing how the latter can be set up in a realistic scenario, i.e. in what setup you have two clocks. A PausedStream wrapping yet another PausedStream? I'm still not seeing why two clocks would come into play there, and without that, it seems to me there's no showcasing.
Edited to add: actually, I know one additional reason why that didn't work... PauseStream reasserted itself as the threadPlayer when I did the last
p.resume
.r.threadPlayer
wasa PauseStream
again after that.So it was smarter than my attempt to circumvent it.
Description of Proposed Feature
Given that no test suite case was added with that commit, but I'm fairly sure it fixed a real problem. Can someone at least paste an example illustrating the problem here?
Plan for Implementation
Julian?
The text was updated successfully, but these errors were encountered: