ns_for.3aolserver

Langue: en

Version: 4.5 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)


 

NAME

ns_for, ns_foreach, ns_while, ns_lctl - Replacements for standard Tcl loop commands which enable monitoring and control

SYNOPSIS

 ns_for start test next body
 ns_foreach varname list body
 ns_foreach varlist1 list1 ?varlist2 list2 ...? body
 ns_while test body
 ns_lctl cancel id
 ns_lctl eval id script
 ns_lctl info id
 ns_lctl install command
 ns_lctl list
 ns_lctl pause id
 ns_lctl result id
 
 

 
 

DESCRIPTION

The ns_for, ns_foreach, and ns_while commands are replacements for cooresponding Tcl commands with the additional capability of monitoring and control through the ns_lctl command.

ns_for start test next body
See the for(n) man page for usage.
ns_foreach start test next body
See the foreach(n) man page for usage.
ns_foreach varlist1 list1 ?varlist2 list2 ...? body
See the foreach(n) man page for usage.
ns_while test body
See the while(n) man page for usage.
ns_lctl cancel id
Mark the given loop to cancel at the next iteration, resulting in the loop returning with TCL_ERROR.
ns_lctl eval id script
ns_lctl info id
ns_lctl install command
ns_lctl list
ns_lctl pause id
ns_lctl result id

SEE ALSO

for(n), foreach(n), while(n)

KEYWORDS

threads, iteration, list, looping, cancel