Overview
| Artifact ID: | 193220186bd8990faa8a1cc226c82228624ff46b |
|---|---|
| Ticket: | 3611974fffffffffffffffffffffffffffffffff
InitSubsystems multiple thread issue |
| User & Date: | jan.nijtmans on 2013-06-18 14:12:36 |
Changes
- icomment:
>With two threads concurrently attempting to finalize, >the second will leap to the end of finalization while >the first is still doing the teardown work. I think that's what should happen: finalization should only happen once, it's doesn't really matter which thread actually does it. So, the thread that does the second Tcl_Finaliza() should skip over the section, and just assume that the other thread will finish it. The thing that still goes wrong is if one thread does an initialize while another thread starts a finalize when the other initialize is still running. A 4-state system with a panic would be better, but for the 8.x line I'm fine with just letting it crash. I'll check the history.
- login: "jan.nijtmans"
- mimetype: "text/plain"