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

Implement move semantics and disable copy semantics for the new PipeReader #342

Merged
merged 3 commits into from
Oct 8, 2024

Conversation

FJShen
Copy link
Contributor

@FJShen FJShen commented Oct 8, 2024

The PipeReader introduced in PR #340 holds a file handle to a unique Linux anonymous pipe. Therefore, we should prevent someone from trying to 'copy' a PipeReader class object. While there is currently no such use case in the repository, it is important to implement preventative measures before someone shoots himself in the foot.

@FJShen FJShen requested a review from JRPan October 8, 2024 03:21
@JRPan JRPan added this pull request to the merge queue Oct 8, 2024
Merged via the queue into accel-sim:dev with commit 73f9fac Oct 8, 2024
4 checks passed
@FJShen FJShen deleted the pipe_reader_move_semantics branch October 8, 2024 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants