Overview
| Artifact ID: | e19d43f52e4ed76b3bfb2f6f151124f2d908496f |
|---|---|
| Ticket: | 577014ffffffffffffffffffffffffffffffffff
documentation; wait on thread exits |
| User & Date: | vasiljevic on 2002-08-08 16:45:04 |
Changes
- icomment:
Logged In: YES user_id=95086 1. No 7. Unfortunately. at the moment no. The "waiting queue" is really the event loop and Tcl does not export any functions about interrogating the event loop entries, the size of it, etc. 9. I'd say not more than handling processes. Actually, they are much simpler to handle than processes, IMO. 2. Mo did update the thread.n file in CVS directly and is now not in sync with html again. Idea is to have thread.tmml and generate both doc format automatically. I will fix this. 2.2.1. Depends on the underlying threads library. Normaly what is saved is the exit code which is usually and integer. But this may vary from implementation to implementation. You better join threads explicitly if you created them as joinable, otherwise you're searching for trouble. 2.2.2 Now I understand. Ok, the library has create/destroy things for mutexes and condition variables. It also implicitly sets shared arrays. Those live independently of threads and are never automatically destroyed, unless you explicitly say so. Even on the app exit (there are good reasons for that). What is not so clear is thread creation/destroy. This is somehow shadowed. The thread creation is straightforward. The termination not. You have thread::unwind, thread::exit and thread::release for this. All serve different purposes and it is not always feasible nor possible to maintain the create/destroy paradigm in this case. Concerning docs, many of useful hints and ideas are found in this dialog. I will compile them and extend the docs. Thanks for you remarks and inputs.
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"