Overview
| Artifact ID: | 91dbb06547b2dd7f2c9304bee9651b16f32a4a47 |
|---|---|
| Ticket: | 577014ffffffffffffffffffffffffffffffffff
documentation; wait on thread exits |
| User & Date: | vasiljevic on 2002-08-06 06:11:11 |
Changes
- icomment:
Logged In: YES user_id=95086 Well, nobody ever claimed so :) To wait for a thread exit, one should create a joinable thread and then use thread::join. This is the proper way to wait for a thread to exit. This, however works only for Tcl8.4+. Another way is to do a "thread::release -wait" which will work for 8.3 as well. To "vwait" on a variable which is set by the remote thread is just an asynchronous message passing between the target thread and the caller thread. This is done in order to simplify interaction between threads where one (the caller) is doing something in the event loop, wants to delegate some work to target thread and "vwait" on the result to come back without blocking his event loop. So, these two things are entirey different. Now, what was your *exact* question?
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"