Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » About the thread of swt !
About the thread of swt ! [message #446884] Sun, 05 December 2004 04:50
bbskill is currently offline bbskillFriend
Messages: 26
Registered: July 2009
Junior Member
hi,
we know wo can use
display.syncExec(new Runnable(){
public void run() {}
}
to access the widgets in non-UI Thread.
But if this non-UI Thread is executed frequently,it is necessary
to change the code to:
class runnable implements Runnable {
public void run() {}
}
display.syncExec(runnable);
I think this can reduce the expense in creating and destorying the
Runnable().But it will cause the runnable() exist for long.
Thanks for your opinions?
Previous Topic:TableViewer
Next Topic:Fill ToolItems in Vertical ToolBar to Fit Width (Windows only)
Goto Forum:
  


Current Time: Thu Oct 22 01:41:26 GMT 2020

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

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

Back to the top