Object «Threading»
Provides management of parallel threads.
Method
Description
Waiting for the specified flow to complete.
Finishes the execution of the specified flow.
Queries the received message.
Sends a message to the specified stream.
Runs the function passed as a parameter in a separate thread.
joinThread
Waiting for the specified flow to complete.
Syntax
As a parameter, it is necessary to specify thread id.
killThread
Finishes the execution of the specified flow.
Syntax
The thread id must be specified as a parameter.
receiveMessage
Queries the received message.
Syntax
If wait
is true
, it waits until a message arrives.
sendMessage
Sends a message to the specified stream.
Syntax
As parameters, it is necessary to specify thread id and message.
startThread
Runs the function passed as a parameter in a separate thread.
Warning! This creates a new copy for all global variables. So if the value of a variable change in one thread, it stays the same in another thread.
Syntax
As parameters, it is necessary to specify thread id and function.
Last updated
Was this helpful?