Skip to main content

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

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

Back to the top