GetThreadInfo
GetThreadInfo function is pre-existing in LotusScript, but has been extended in VoltScript.
The LSI constants available with LotusScript aren't included by default, so the integer indices will be needed instead. The full table with indices, including the new options, is below:
Index | Code (Not in VoltScript) | Meaning |
---|---|---|
0 | LSI_THREAD_LINE | Current line number from file |
1 | LSI_THREAD_PROC | Name of current procedure |
2 | LSI_THREAD_MODULE | Name of current module |
3 | LSI_THREAD_VERSION | LotusScript® version number |
4 | LSI_THREAD_LANGUAGE | OS (Human) language setting |
5 | LSI_THREAD_COUNTRY | OS Country or region setting |
6 | LSI_THREAD_TICKS | Get current clock ticks |
7 | LSI_THREAD_TICKS_PER_SEC | Get clock ticks per second (supported only on platforms that support parallel processing primitives) |
8 | LSI_THREAD_PROCESS_ID | Get current process ID (supported only on platforms that support parallel processing primitives) |
9 | LSI_THREAD_TASK_ID | Get current task ID (supported only on platforms that support parallel processing primitives) |
10 | LSI_THREAD_CALLPROC | Get the name of the calling procedure |
11 | LSI_THREAD_CALLMODULE | Get the name of the calling module |
12 | Get stack trace, including current line, procedure and module | |
13 | Get platform | |
14 | Get current memory | |
15 | Get memory used | |
16 | Get memory available |