mecca icon indicating copy to clipboard operation
mecca copied to clipboard

Compatibility for Thread._locks

Open thewilsonator opened this issue 6 years ago • 2 comments
trafficstars

See https://github.com/dlang/druntime/pull/2519

thewilsonator avatar Mar 25 '19 01:03 thewilsonator

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

thewilsonator avatar Mar 25 '19 08:03 thewilsonator

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.

Shachar avatar Mar 25 '19 08:03 Shachar