Overview
| Artifact ID: | a558c7d94cc909a2de7262dd47c0917d58601585 |
|---|---|
| Ticket: | 577014ffffffffffffffffffffffffffffffffff
documentation; wait on thread exits |
| User & Date: | vasiljevic on 2002-08-06 17:45:22 |
Changes
- icomment:
Logged In: YES user_id=95086 Consider: foreach script {{set a 1} {set b 2} {set c 3}} { lappend tids [thread::create -joinable $script] } foreach tid $tids { thread::join $tid } This works for Tcl8.4+. The 8.4 is really best choice for threads. Out of this, you might be able to construct your own wait function in Tcl. The "thread::wait" is meant to put the thread in the event loop. It is not designed to wait for the thread exit or such. - login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"