Core Function Threads
From Sputnik Wiki
Cls( )
Contents |
Description
Threads( ) -- Return an array of all threads
Parameters
None
Return Value
None
Remarks
None.
Example
ThreadCreate("th1", "ThreadFunc();"); ThreadCreate("th2", "ThreadFunc();"); ThreadCreate("th3", "ThreadFunc();"); $threads = Threads(); $threadCount = UBound(Threads()); println($threadCount > 0 ? "There are '$threadCount' threads running" : "There is '$threadCount' thread running"); foreach( $threads as $th ) { println("Thread name '$th'"); }