Open waywardmonkeys opened 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.
dylan_enter_thread
dylan_exit_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.
libdispatch
To be more clear, dylan_enter_thread and dylan_exit_thread don't exist yet.
From the C level, we need to be able to invoke
dylan_enter_thread
anddylan_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.