Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Kernel#caller for non-current thread

0 views
Skip to first unread message

Joel VanderWerf

unread,
Oct 24, 2006, 9:15:22 PM10/24/06
to
Steven Lumos wrote:
> Looks like it can be done in C by: set ruby_frame to the particular
> th->frame, call backtrace(), and set it back. Is there a better way or
> has anybody already done it?

Hm, is there anything in the implementation of #backtrace that could
cause another thread to run? Maybe Thread.critical=true is needed...

This would be nice to have, if it works.

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

0 new messages