Skip to content

Compatibility for Thread._locks - #15

Open
thewilsonator wants to merge 1 commit into
dlang-community:masterfrom
thewilsonator:patch-2
Open

Compatibility for Thread._locks#15
thewilsonator wants to merge 1 commit into
dlang-community:masterfrom
thewilsonator:patch-2

Conversation

@thewilsonator

Copy link
Copy Markdown
Contributor

@thewilsonator

Copy link
Copy Markdown
Contributor Author

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

@Shachar

Shachar commented Mar 25, 2019

Copy link
Copy Markdown
Contributor

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