FFI, signals and exceptions
Edward Z. Yang
ezyang at MIT.EDU
Thu Aug 26 01:57:50 EDT 2010
Excerpts from Edward Z. Yang's message of Thu Aug 26 01:22:22 -0400 2010:
> I spent some time looking at the code, and I've been having a difficult
> time finding the thread ID of the worker thread that is performing the
> safe FFI call. The target TSO is the suspended Haskell thread, which
> afaict is distinct from the worker thread that is actually doing the FFI
> call, so the obvious Tasks from bound/cap seem to be the wrong ones.
> Do I have to walk all_tasks to find the one that's running the call I care
> about?
Of course, immediately after I send this message, my debug build finishes
and I find target->bound->task is the one I care about. :-)
Cheers,
Edward
More information about the Glasgow-haskell-users
mailing list