dylan-lang / opendylan

Open Dylan compiler and IDE
http://opendylan.org/
Other
455 stars 68 forks source link

[threads] Need dylan_enter_thread, dylan_exit_thread #969

Open waywardmonkeys opened 8 years ago

waywardmonkeys commented 8 years ago

From the C level, we need to be able to invoke dylan_enter_thread and dylan_exit_thread when we might be invoking Dylan code from a foreign thread.

This should at least work with the C and LLVM run-times.

The situation where I need it is when running Dylan code from a thread managed by libdispatch on Mac OS X.

waywardmonkeys commented 8 years ago

To be more clear, dylan_enter_thread and dylan_exit_thread don't exist yet.