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 new NIF api for yielding #19

Closed
lpgauth opened this issue Sep 29, 2014 · 3 comments
Closed

Use new NIF api for yielding #19

lpgauth opened this issue Sep 29, 2014 · 3 comments

Comments

@lpgauth
Copy link
Contributor

lpgauth commented Sep 29, 2014

Hi,
Erlang 17.3 introduced a new way for NIFs to yield back to the scheduler. I'm not sure how easy it would be to integrate this into the NIF generator.

Here's an example project using the new API:

@tomas-abrahamsson
Copy link
Owner

It would probably be fully doable somehow. I haven't yet had a very close look at the changes in 17.3, but generally, I think it is probably fully doable in some way or another.

@tomas-abrahamsson
Copy link
Owner

Hi, I did a quick attempt at it on the branch nif-on-dirty-scheduler if you would like to try it out. It might perhaps not work on 17.0 (or other pre-17.3 versions).

@tomas-abrahamsson
Copy link
Owner

Hi, I've merged the nif-on-dirty-scheduler branch into master 3.15.0, it should use a dirty cpu-bound scheduler if there is support (17.3 configured with --enable-dirty-schedulers)

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