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

How thread-safe is fishhook #76

Closed
michaeleisel opened this issue Mar 16, 2020 · 3 comments
Closed

How thread-safe is fishhook #76

michaeleisel opened this issue Mar 16, 2020 · 3 comments

Comments

@michaeleisel
Copy link

I want to hook pthread_create in main, but I'm curious if there can be any tearing or otherwise bugs due to thread safety. I don't mind if it's undefined whether concurrent calls use the old or the new function, I just want to be sure that there won't be any peripheral bugs.

@swolchok
Copy link
Contributor

If you hook in main (i.e., before any other threads are created), how would there be any concurrent calls?

@michaeleisel
Copy link
Author

Fair point

@swolchok
Copy link
Contributor

Sounds like that answered your question, so closing. Thanks for asking!

@jobsyu jobsyu mentioned this issue Jun 18, 2020
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

No branches or pull requests

2 participants