Core Function Threads

From Sputnik Wiki
Revision as of 12:38, 14 June 2015 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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'");
}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox