|
From: Josef W. <Jos...@gm...> - 2005-05-30 22:03:01
|
Hi, I have a question on Valgrind scheduling (I have a bug here in my tool): as callgrind has "shadow" call stacks for each thread, it always needs to know which thread currently is running. Usually, this is no problem with VG_(track_thread_run). I also track signal handlers. And these can switch the running thread. VG_(track_thread_run) is not called directly after a signal handlers return. So the question is, what thread is resumed when a signal handler returns? Do I have to track this myself? And if, how to do this? Can there be a thread switch while a signal handler is running? Thanks for any answer; I somehow can see the solution from Valgrinds source. Josef |