Alex,
where's your event loop in the Tcl thread? You should have something like "vwait forever" at least.
HTH,
Christian
Tcl_MainEx(m_argc, m_argv, Tcl_AppInit, m_Tcl_Interp); has an infinite loop which waits on length = Tcl_GetsObj(is.input, is.commandPtr); in tclMain
Tcl_MainEx(m_argc, m_argv, Tcl_AppInit, m_Tcl_Interp); has an infinite loop which waits on length = Tcl_GetsObj(is.input, is.commandPtr); in tclMainwhich is not an event loop but blocking in a channel read operation, isn't it? So how shall an event be handled then?
So how the threads are created in the tcl script when run from blocking in a channel read operations i tclsh.exe (? Where is the event loop started in this case?
So how the threads are created in the tcl script when run from blocking in a channel read operations i tclsh.exe (? Where is the event loop started in this case?Assuming, that you're executing a script which does some thread creation at the end you'll have to do a "vwait forever", otherwise your main script terminates.
In your situation, you could read a little script containing "vwait forever" from is.input in order to have your event loop.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (2 / 14) |
Uptime: | 34:45:08 |
Calls: | 6,449 |
Calls today: | 1 |
Files: | 12,052 |
Messages: | 5,255,072 |