Is IWorkbenchListener.postShutdown always being called by the main thread ? [message #1730492] |
Tue, 26 April 2016 05:59 |
Eclipse User |
|
|
|
Hello to the forum members,
I have a JNI code which needs to be called from the main thread when my plugin stops and Eclipse closes. Following this topic:
https://www.eclipse.org/forums/index.php/m/1730393/#msg_1730393
I understand that I cannot be sure that the thread running the stop method of my plugin would be the main thread. It was true before Eclipse 4.2.2, not anymore.
I saw that the API IWorkbenchListener.postShutdown is being called from the main thread. Is it always being called from the main thread ? Any scenarios where this is not true ?
As you can see in the linked topic above, trying to use Display.getDefault().syncExec or Display.getDefault().asyncExec to solve this issue did not work.
Thanks in advance,
Gidi
|
|
|
Powered by
FUDForum. Page generated in 0.04347 seconds