Difference between revisions of "Ns cleanup"
Jump to navigation
Jump to search
(imported from WiKit id 533) |
|||
(One intermediate revision by one other user not shown) | |||
Line 13: | Line 13: | ||
'''DESCRIPTION''' | '''DESCRIPTION''' | ||
− | : This command cleans up the current Tcl interp, performing various garbage collection tasks. This command is invoked by the [[Ns_TclDeAllocateInterp()]] C function | + | : This command cleans up the current Tcl interp, performing various garbage collection tasks. This command is invoked by the [[Ns_TclDeAllocateInterp()]] C function at interpreter deallocation (aka cleanup) time (i.e. at the end of each request or scheduled procedure execution). This is a Tcl procedure defined in bin/init.tcl and it calls other procs in that file to clear global variables, release database handles, close all open files, etc. |
− | : | + | : You should never need to call this procedure directly unless you want to manually clear your current interpreter without running the full deallocate/allocate traces using [[ns_ictl]] facilities. |
'''SEE ALSO''' | '''SEE ALSO''' | ||
Line 23: | Line 23: | ||
---- | ---- | ||
− | [[Category Documentation]] - [[Category Core Tcl API]] | + | [[Category:Documentation]] - [[Category:Core Tcl API]] |
Latest revision as of 01:44, 18 June 2010
Man page: http://aolserver.com/docs/tcl/ns_cleanup.html
NAME
- ns_cleanup - Clean up the current Tcl interpreter
SYNOPSIS
- ns_cleanup
DESCRIPTION
- This command cleans up the current Tcl interp, performing various garbage collection tasks. This command is invoked by the Ns_TclDeAllocateInterp() C function at interpreter deallocation (aka cleanup) time (i.e. at the end of each request or scheduled procedure execution). This is a Tcl procedure defined in bin/init.tcl and it calls other procs in that file to clear global variables, release database handles, close all open files, etc.
- You should never need to call this procedure directly unless you want to manually clear your current interpreter without running the full deallocate/allocate traces using ns_ictl facilities.
SEE ALSO
-