Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Is IWorkbenchListener.postShutdown always being called by the main thread ?
Is IWorkbenchListener.postShutdown always being called by the main thread ? [message #1730492] Tue, 26 April 2016 09:59
Gidi Gal is currently offline Gidi GalFriend
Messages: 40
Registered: July 2009
Member
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
Previous Topic:Please help breadcrumb navigation example for eclipse rcp 3
Next Topic:About eclipse launcher
Goto Forum:
  


Current Time: Tue Jun 19 03:31:48 GMT 2018

Powered by FUDForum. Page generated in 0.02140 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top