Overview
| Artifact ID: | 61c4992dd51f171f81ea7824c3588f6aa840ac4a77c566c38e8b32f98682cb7d |
|---|---|
| Ticket: | d82a78ebf2b9ede7aa6b87b47b3f316d0c0c816e
Clarify execution order for thread creation scripts |
| User & Date: | sebres on 2019-05-06 12:11:37 |
Changes
- closedate changed to: "2458610.0080711"
- closer changed to: "sebres"
- icomment:
Again, please use thread-repository for concerns of thread-package. BTW, which sentence in the documentation exactly you interpret as "let the calling thread to continue with its work only after successful initialisation of a related task"?<br/> I don't see something similar in the docu and in my opinion it was never the case in thread package...<br/> The caller thread gets an id of main thread immediately after its interpreter got created (ready)... However, if you want behavior like this, use constructs with synchronous thread::send like here: <code><pre style="padding-left:10pt"> set id [thread::create]; \ thread::send $id { puts "thread [thread::id] creating..."; flush stdout after 1200 puts "thread [thread::id] created."; flush stdout }; \ puts "MAIN: we have created $id"; flush stdout </pre></code> - login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Invalid"
- status changed to: "Closed"