Just some feedback on this. Yes, it looks like it's working. I've now run some tests where the separate portions of the tree view data have been read from an SQL database+inserted into the tree view from a method initiated multiple times using the start method. Say statements showing the SQL activity and corresponding threadID confirm that multiple threads are being used, and the resulting tree view shows all the entries in the expected order.


On Sat, Sep 29, 2012 at 6:38 PM, Mark Miesfeld <miesfeld@gmail.com> wrote:
On Sat, Sep 29, 2012 at 3:09 AM, Staffan Tylen <staffan.tylen@gmail.com> wrote:
Simple question: is it safe (or even possible) to perform inserts from multiple threads using one or more tree view objects created using the newTreeView method and referring to the same resource ID?

It should be possible, I'd say try it and see what happens.

There is only one underlying tree-view control, even if you do newTreeView() several times on different threads.  I would think the order of the items in the tree-view is going to be non-deterministic if you are inserting items from different threads, but other than that I wouldn't expect a problem.

Mark Miesfeld

How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
Oorexx-users mailing list