thread names
Gives the ids of the threads of the group.
thread::names
Description
The command thread::names gives the id of each thread of the group that runs, with the main thread, in no set order. The workers of the pools of tpool are not in the list.
Returns
A list of thread ids.
Examples
% thread::names
tid0x1
% thread::create
> lsort [thread::names]
tid0x1 tid0x2
Errors
% thread::names x
wrong # args: should be "thread::names"
-errorcode TCL WRONGARGS
Facts
- Capability
thread. A new interpreter does not have it until the host turns it on.- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1