Overview
| Artifact ID: | 738af079ebfc11f074450cb944f5cd73a831c55c |
|---|---|
| Ticket: | 486399ffffffffffffffffffffffffffffffffff
Panic on exit before all threads returned |
| User & Date: | vasiljevic on 2009-05-07 05:01:54 |
Changes
- icomment:
Hi! I am afraid you will not be able to "rectify" this w/o rewriting the complete finalization logic introducing ref-counts and similar tricks. Furthermore, no thread in the application is a "main" thread. Every thread is equal. So long ANY thread is using Tcl datastructures they cannot/shouldnot be freed, regardles if this is the "first" thread started in the process or any other. I tried to do that (not only myself, but also some AOLserver developers) just to find out that it is a huge and complex task, perhaps too complex to justify the benefits. Anyway, by adhering to the one simple rule: never exit while there are other threads in the process. one can live with this pretty fine. If you want to make it "by the book" you are welcome to try, but be prepared to sweat hard. Cheers Zoran
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"