Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Signalling in Multithreaded app

$
0
0

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

Arcady


Viewing all articles
Browse latest Browse all 2935


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>