Overview
| Artifact ID: | 620fb99f938b021d34189d826d81e450e4762376 |
|---|---|
| Ticket: | 801429ffffffffffffffffffffffffffffffffff
Tcl_SetMainLoop: not thread safe? |
| User & Date: | dgp on 2005-07-08 03:42:29 |
Changes
- icomment:
Logged In: YES user_id=80530 possibly related chat: dgpthe half-baked example is the master thread Tcl_Main()... [16:20]dgpevals a script that brings in the Thread package, creates a second thread... [16:20]dgp...then sends a message to [package require Tk] in that other thread. [16:21]dgpThat would call Tcl_SetMainLoop and establish an event loop in the first thread, while it is needed in the second one. dgp% package require Thread 2.6.1 % set t [thread::create] tid0x803 % thread::send $t {package require Tk} [16:40]dgpdisplays a root window, and then hangs. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"