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

use globally shared pipe to validate memory #198

Merged
merged 1 commit into from
Feb 20, 2023
Merged

Conversation

YangKeao
Copy link
Member

close #197

The pipes can be shared across the threads, because the signal only hits one thread at a time. I'm not sure why I used the thread_local in the previous commit 😢 .

@YangKeao YangKeao force-pushed the fix-197 branch 11 times, most recently from 1838bb4 to 819d6cc Compare February 15, 2023 13:05
@YangKeao YangKeao requested a review from sticnarf February 16, 2023 07:37
src/addr_validate.rs Outdated Show resolved Hide resolved
src/addr_validate.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@sticnarf sticnarf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

SeqCst is probably too strong here, but I think it's not a big problem. And as @Connor1996 requested, you can add some comments about how validation works.

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
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.

pipe fd(s) opened in addr_validate::validate will not be closed for short-term threads
3 participants