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

Compatibility for Thread._locks #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Compatibility for Thread._locks #15

wants to merge 1 commit into from

Conversation

thewilsonator
Copy link
Contributor

@thewilsonator
Copy link
Contributor Author

Hmm, this doesn't work: https://issues.dlang.org/show_bug.cgi?id=19761

@Shachar
Copy link
Contributor

Shachar commented Mar 25, 2019

The whole point of using this method was to grant us access to private members which we need in order to switch fibers not from within the Thread druntime module.

The real solution to this is to create an advertised API in Thread for switching fibers, and have D's Fiber class use that instead of accessing private members of Thread (there is no reason for Fiber and Thread to share a module aside from this).

This would allow Mecca to use public APIs for switching fibers.

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.

2 participants