comp.lang.tcl
[Top] [All Lists]

Replacement for thread::exit?

Subject: Replacement for thread::exit?
From: Mikhail Teterin
Date: Thu, 29 May 2008 16:51:59 -0400
Newsgroups: comp.lang.tcl

Hello!

The thread::exit call is documented to as deprecated:

 http://tcl.cvs.sourceforge.net/*checkout*/tcl/thread/doc/html/thread.html#7

and is supposed to disappear "soon".

However, the proposed alternative (thread::release) has no obvious way to
signal the thread's exit code, which the thread::join-ing thread may wish
to examine:

                                tcl.cvs.sourceforge.net/*checkout*/tcl/thread/doc/html/thread.html#14">http://tcl.cvs.sourceforge.net/*checkout*/tcl/thread/doc/html/thread.html#14

What's the right way for a thread to end itself, while also signaling its
exit-status to whoever cares?

Thanks!

 -mi

<Prev in Thread] Current Thread [Next in Thread>
  • Replacement for thread::exit?, Mikhail Teterin <=
Privacy Policy