Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-01-20
07:29 • Closed ticket [487214ffff]: missing ThreadKill() on unix plus 3 other change... artifact: 60d4c71f79 user: vasiljevic
2002-01-15
01:48 • Ticket [487214ffff]: 4 changes artifact: fa40f2c890 user: andreas_kupries
2001-11-30
06:23 • Ticket [487214ffff]: 4 changes artifact: 1eb7f736c1 user: davygrvy
06:05 • Ticket [487214ffff]: 1 change artifact: a465d40ccf user: davygrvy
2001-11-29
20:09 • New ticket [487214ffff]. artifact: 379bbbd6af user: dgp

missing ThreadKill() on unix

Closed / Fixed487214ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-11-29 20:09:08
After restoring ability to build and install Thread
(see Bug 487213), I try a test:

$ make test
/usr/local/lib/../bin/tclsh8.3 ./tests/thread.test
couldn't load file
"/usr/local/lib/thread2.3/../libthread2.3.so":
/usr/local/lib/thread2.3/../libthread2.3.so: undefined
symbol: ThreadKill
    while executing
"load /usr/local/lib/thread2.3/../libthread2.3.so"
    ("package ifneeded" script)
    invoked from within
"package require Thread 2.0"
    (file "./tests/thread.test" line 18)
make: *** [test] Error 1

Sure enough, ThreadKillObjCmd() in generic/threadCmd.c
calls ThreadKill() that is only implemented in
win/threadWin.c.  The unix implementation is missing.
davygrvy Ticket [487214ffff]: 1 change [History diff]2001-11-30 06:05:16
davygrvyplain2001-11-30 06:23:01
Logged In: YES 
user_id=7549

ThreadKill() can't work on windows anyways.  Tcl_ThreadCreate doesn't save the new thread's handle.  Without it, we can't TerminateThread() with it.  Some people made strong requests for a way to kill a thread and there it is.  As far as can be done showing the limits of Tcl's API waiting for someone else to come along and finish it.

suggest:  Se how the core save's handles associated to process IDs with the [pid] command.  Copy the idea for threads to allow the ability to get a handle from a global thread ID.

Zoran is the owner of this project, not me.
andreas_kupriesplain2002-01-15 01:48:06
Logged In: YES 
user_id=75003

See also the duplicate entry #503451
vasiljevic Closed ticket [487214ffff]. [History diff]2002-01-20 07:29:22
Log in (anonymous is fine) to add a comment.