Core Function Threads

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
m (1 revision)
 

Latest revision as of 12:38, 14 June 2015

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