Using a trace function with multiple threads

F

Francis Joanis

Hello all,

I'd like to know if the set_trace_func function works on a "per
thread" basis or if it works globally.

I have a multithreaded application that is required to do some
checking inside a trace function. This checking requires having access
to the current thread's context to determine its class type, name
based on a variable, ...

Is there a way to get a hold (an address, an ID, ...) to the active
thread's context within a global trace function?

Thanks a lot,

Francis
 
L

Lothar Scholz

Read the source code of the debugger. You find your answer there.

its the "debugger.rb" file :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,109
Messages
2,570,671
Members
47,262
Latest member
EffiePju4

Latest Threads

Top