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

.wait() for MacOS? #9

Open
dpc opened this issue Jan 12, 2019 · 3 comments
Open

.wait() for MacOS? #9

dpc opened this issue Jan 12, 2019 · 3 comments

Comments

@dpc
Copy link

dpc commented Jan 12, 2019

It seems right now wait() is implemented only for Linux. Is there a fundamental problem? Any workarounds to make the code work on any platform?

@tailhook
Copy link
Owner

I'm not sure that sigtimedwait exists on OS X. Contributions are welcome!

@dpc
Copy link
Author

dpc commented Jan 12, 2019

@tailhook
Copy link
Owner

Well, sigpending in a loop with sleep might work. Another question is whether to unblock signals as part of wait() function call as this might be racy but would make wakups more precise (which is what you expect from signals) and avoid most spurious wakeups.

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