diff options
author | hobbs <hobbs> | 2008-08-01 18:22:27 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2008-08-01 18:22:27 (GMT) |
commit | e8eb91c8acb09e341223b15de621f7ef1c8131f9 (patch) | |
tree | 34e65cd7252bbe4a9768ac6bf2ff2c3194147b02 /doc/Exit.3 | |
parent | 4500f56474ce572532e86d38956af8fe69eb9d7d (diff) | |
download | tcl-e8eb91c8acb09e341223b15de621f7ef1c8131f9.zip tcl-e8eb91c8acb09e341223b15de621f7ef1c8131f9.tar.gz tcl-e8eb91c8acb09e341223b15de621f7ef1c8131f9.tar.bz2 |
* doc/Exit.3: do not call Tcl_Finalize implicitly
* generic/tclEvent.c: on DLL_PROCESS_DETACH as it may lead
* win/tclWin32Dll.c (DllMain): to issues and the user should be
explicitly calling Tcl_Finalize before unloading regardless.
Clarify the docs to note the explicit need in embedded use.
Diffstat (limited to 'doc/Exit.3')
-rw-r--r-- | doc/Exit.3 | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -4,7 +4,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: Exit.3,v 1.7 2008/06/29 22:28:24 dkf Exp $ +'\" RCS: @(#) $Id: Exit.3,v 1.8 2008/08/01 18:22:29 hobbs Exp $ '\" .so man.macros .TH Tcl_Exit 3 8.5 Tcl "Tcl Library Procedures" @@ -74,12 +74,8 @@ exit from the current process. It is useful for cleaning up when a process is finished using \fBTcl\fR but wishes to continue executing, and when \fBTcl\fR is used in a dynamically loaded extension that is about to be unloaded. -On some systems \fBTcl\fR is automatically notified when it is being -unloaded, and it calls \fBTcl_Finalize\fR internally; on these systems it -not necessary for the caller to explicitly call \fBTcl_Finalize\fR. -However, to ensure portability, your code should always invoke -\fBTcl_Finalize\fR when \fBTcl\fR is being unloaded, to ensure that the -code will work on all platforms. \fBTcl_Finalize\fR can be safely called +Your code should always invoke \fBTcl_Finalize\fR when \fBTcl\fR is being +unloaded, to ensure proper cleanup. \fBTcl_Finalize\fR can be safely called more than once. .PP \fBTcl_ExitThread\fR is used to terminate the current thread and invoke |