Provides standard regular expression functions. For Concert versions 8.0+.
The following statement may be used to import the thread library:
import thread;
Name | Description |
---|---|
get_thread_id | Get the current thread's ID. |
hardware_concurrency | Try to get system hardware thread count. May report 0. |
sleep | Sleep for argument milliseconds. |
Returns a sttring representing the current thread's ID.
string data;
call get_thread_id -> data;
int threadCount = 0;
call hardware_concurrency -> threadCount;
int millis = 500;
println "Sleeping for ", millis, " millis";
call sleep : millis;