[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jdt-debug-dev] How to interact with suspended threads safely
|
Hi!
I'm writting a debug extension similar to existing views. I listen to debug
events and when a step has completed, I transform from existing JDI model to
my own. I also need to perform some method calls at this time. By studying
existing source, I have concluded:
1) It is safe to examine JDI objects in my event listener,
2) If I need to run some method, I should do this through:
DebugPlugin.getDefault().asyncExec /
thread.queueRunnable / thread.runEvaluation.
Am I correct? Is everything under (2) necessary? Am I guaranteed to have my
evaluations performed before a user is allowed to interract with this
thread? If not, how can I achieve this?
Is there any particular problem with running sendMessage directly in my
listener, except that it may block due to infinite loops in user code?
If there are some examples concerning this that are a little less
complicated than standard eclipse views please point me to them.
Thanks for any help that you can provide
Regards,