Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Use a ring buffer to pipe data between IO objects #819
Use a ring buffer to pipe data between IO objects #819
Changes from 2 commits
3c9756b
c6ea0c1
db10b63
98b4a23
4ce0ef9
eb086c4
6547452
d2fad50
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 141 in src/exec/use_pty/pipe.rs
src/exec/use_pty/pipe.rs#L140-L141
Check warning on line 215 in src/exec/use_pty/pipe.rs
src/exec/use_pty/pipe.rs#L215
Check warning on line 231 in src/exec/use_pty/pipe.rs
src/exec/use_pty/pipe.rs#L230-L231
Check warning on line 237 in src/exec/use_pty/pipe.rs
src/exec/use_pty/pipe.rs#L237
Check warning on line 240 in src/exec/use_pty/pipe.rs
src/exec/use_pty/pipe.rs#L240
Check warning on line 256 in src/exec/use_pty/pipe.rs
src/exec/use_pty/pipe.rs#L255-L256
Check warning on line 262 in src/exec/use_pty/pipe.rs
src/exec/use_pty/pipe.rs#L262
Check warning on line 265 in src/exec/use_pty/pipe.rs
src/exec/use_pty/pipe.rs#L265
Check warning on line 275 in src/exec/use_pty/pipe.rs
src/exec/use_pty/pipe.rs#L274-L275
Check warning on line 278 in src/exec/use_pty/pipe.rs
src/exec/use_pty/pipe.rs#L277-L278
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this particular case you could set the initial condition by directly setting the value of
start
toHALF_LEN
. that way this unit test does not rely oninsert
andremove
correctly working in cases 1.1 and 2.1.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I thought about it but I think I'd rather leave those tests as implementation agnostic as possible.