Script access to Tcl_CancelEval
Closed / Accepted3006957fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 14 years ago
Descriptionplain2010-05-25 16:16:45
It would be useful to have a command
thread::cancel ?-unwind? thread_id ?interp_path?
that translates to the TIP #285 function implemented in Tcl 8.6
int Tcl_CancelEval(Tcl_Interp *interp, ClientData clientData, int flags)
and goes beyond "interp cancel" by allowing a script to cancel an interpreter in another thread.
vasiljevicplain2010-05-26 00:23:48
Indeed. I already have some plans to include this kind of functionality by using Tcl_AsyncMark mechanism that would be applicsblle to 8.4+ cores. I cannot give you any timing though. Cheers Zoran
dgpplain2012-08-30 23:54:18
I think this is done in Thread 2.7. If confirmed, this can be closed.
mistachkinplain2012-08-31 00:46:44
It looks like support was merged to Thread trunk in: http://core.tcl.tk/thread/info/f23bc2edae
vasiljevicplain2012-09-13 16:18:36
This is now implemented in trunk and will appear in 2.7 version of the extension. The syntax is: % thread::cancel wrong # args: should be "thread::cancel ?-unwind? id ?result?"
vasiljevic Closed ticket [3006957fff].
[History diff]2012-09-13 16:18:37
Log in (anonymous is fine) to add a comment.