Parallel API Reference

 Supports parallel block of Alinous-Script. The detail is Parallel execution. In this section, the functions below is used.

The argument "$sync" is a identifier of parallel block, and it is variable of string type.

The "Join" means to wait for the threads launched by the parallel block to be done. There are two method of joinning thread. One is to wait for threads launched by single parallel block, another is to wait for threads launched by multiple parallel blocks.

join($sync)

Join with threads executed with the parallel blocks. The $sync argument is returned value of the parallel block.

joinAll(@scopes)

Join with threads executed with the parallel blocks. The "@scopes" argument is array of the returned value of the parallel block. When you use this function, you have to make this array like below.

 

 


Go to Top