09-06-2011 07:10 PM
I'm using TestStand 4.1 with the parallel process model.
Is it possible to programmatically change the "number of threads per Rendezvous", after the Rendezvous has been created?
Regards,
Tom
Solved! Go to Solution.
09-07-2011 09:27 AM
If what you want is a rendezvous that dynamically sizes based on the number of testsockets, you should consider using the batch model and batch synchronization instead. That's a big part of what batch synchronization gives you.
The TestStand rendezvous currently does not support changing the rendezvous count after the rendezvous has already been created.
Hope this helps,
-Doug
09-07-2011 02:30 PM
Hi Doug,
Thanks for the reply. I've used the batch model extensively on other projects, but in this case its not appropriate as I'm testing groups of different products that start and stop at different times.
Sounds like I'll have to revise my design and use a file global with "Lock" synchronisation instead.
Regards,
Tom
09-08-2011 09:39 AM
Another possibility is to switch out which rendezvous you are using and pass the rendezvous around by reference (rather than accessing it by name). This might make sense if, for example, you have a different number of threads for each product group. You would then switch out which rendezvous your threads are using when switching out which product you're testing.
-Doug
09-08-2011 02:31 PM
Great idea Doug,
I've never tried that before, I've always just used the rendezvous name.
Thanks for your help,
Tom
08-18-2016 09:37 AM
Hello Doug,
Your solution seems interesting for one application that I want to do. But was not able to replicate it. Can you please give me a example of this solution?
Thank you in advance for your help,
Best Regards