Skip to Content
Feb 27, 2014 at 07:30 AM

Signalling in Multithreaded app


Hello, all

We have a single-threaded non-visual PB utility.

All work is done by NVO's. Basically, it runs in loop on a number of retrieved records and does some work on them.

A new requirement arrived to make it multi-threaded, i.e. the work on retrieved records must be done simultaneously.

The current app is built in a simeple hierarhy - a parent NVO with the list of records and the child NVO, who does all the work on each on them.

So, the idea is to allow the child NVO to run in multiple threads.

The question is - how can I signal the parent NVO that all threads are complete?

Do I transfer a reference to it to each copy of the NVO? Or is there a better way to do it?

Thank you