Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Working with different threads in SWT

Hi,

Please post the code you are running and the question to the platform.swt newsgroup. I suppose you are doing all the thread spawing, ... in the runnable which is simply wrong. You should the only lines of code you should run in the Runnable are the calls to the SWT-Functions.

Tom

Roman Kournjaev schrieb:
Hello

I have some synchronization problem , I would very appreciate it if one of you could help me out.

I have a class that implements Runnable interface , this class is doing some manipulations(for instance setBounds) on a Comosite object from SWT , that is connected to some Shell. I am starting two such Threads with the Display.getDefault().asyncExec(runnalbe) function (every Threads gets a different Composite object) , but The threads are not executed in an asynchrony way , the first thread is waiting for the other to die and only then it starts its actual execution. (sleeping and yielding inside the thread didn't help).

Thanks in advance for your help

Roman


------------------------------------------------------------------------

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top