On 25/04/2022 11:43, Cyrille Duret wrote:
The pool::wait command never wait for completion of all threads
The tpool::wait command is documented to "wait for the first job to get
ready". It returns the completed job IDs, and puts the job IDs that are
still pending in the varname argument, if provided.
If you want to wait for all jobs to be ready, you have to call
tpool::wait in a loop. Something like this:
while {[llength $jobs]} {
tpool::wait $pool $jobs jobs
}
Schelte.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)