The pool::wait command never wait for completion of all threads
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 498 |
Nodes: | 16 (2 / 14) |
Uptime: | 03:31:14 |
Calls: | 9,821 |
Calls today: | 9 |
Files: | 13,757 |
Messages: | 6,190,389 |