source/lib.tcl
| Procedure Summary |
? { bool true {false {}} }Equivalent the the C language's ? construct. |
ansi { sid args }Return the input text with extra formating based on ANSI escape codes. |
bgsend { tid script args }A version of thread::send with asynchronous execution, that waits until command is evaluated (without blocking), propagates errors back, and returns the result of the evaluation. |
bgsend_timeout { counter tid }A procedure executed when a bgsend job |
Global { args }This procedure makes it easy to access module shared memory parameters among threads by mapping a local variable to a shared memory variable, and optionally keeping them synchronized as the local variable changes. |
Global_update_write { name args }Update the value of shared memory variable, when the corresponding local |
lempty { listValue }Test if a string is |
lremove { listName item }Remove an item from a list. |
Module { args }This procedure makes it easy to access global shared memory parameters by mapping a local variable to a shared memory variable, and keeping them |
Module_update_write { name args }Update the value of shared memory variable, when the corresponding local |
Session { args }This procedure makes it easy to access shared memory session parameters, by mapping a local variable to a shared memory variable, and keeping them synchronized. |
Session_update_write { name args }Update the value of shared memory variable, when the corresponding local |
| Procedure Detail |
proc ? { bool true {false {}} }
bool - An expression that must be evaluated to either true or false.
true - Any string or list.
false - Any string or list.
proc ansi { sid args }
sid - Session ID.
args - -bold proc bgsend { tid script args }
tid - Thread Id to evaluate script into.
script - Tcl script to evaluate.
args - Optional parameters.
proc bgsend_timeout { counter tid }
counter - The unique number associated with this bgsend job.
tid - Thread Id of thread script is sent to.
proc Global { args }
args - List of shared memory variable names to bind local variables to.
@error
proc Global_update_write { name args }
name - The name of the local/shared variable.
args - Rest of standard variable trace arguments.
proc lempty { listValue }
listValue - A list name
proc lremove { listName item }
listName - A list name
item - The name/value of the item to remove
proc Module { args }
args - [-rw|-ro] proc Module_update_write { name args }
name - The name of the local/shared variable.
args - Rest of standard variable trace arguments.
proc Session { args }
args - [-rw|-ro] proc Session_update_write { name args }
name - The name of the local/shared variable.
args - Rest of standard variable trace arguments.