From: <no...@so...> - 2002-01-20 00:29:24
|
Bugs item #487214, was opened at 2001-11-29 12:09 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=487214&group_id=10894 Category: 80. Thread Package Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Don Porter (dgp) Assigned to: Zoran Vasiljevic (vasiljevic) Summary: missing ThreadKill() on unix Initial Comment: 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. ---------------------------------------------------------------------- Comment By: Andreas Kupries (andreas_kupries) Date: 2002-01-14 10:48 Message: Logged In: YES user_id=75003 See also the duplicate entry #503451 ---------------------------------------------------------------------- Comment By: David Gravereaux (davygrvy) Date: 2001-11-29 15:23 Message: 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. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=487214&group_id=10894 |