[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Kernel#caller for non-current thread

Joel VanderWerf

10/25/2006 1:15:00 AM

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