FixTask Documentation

Back to summary

import "task/barrier";

Barrier class

Barrier allows multiple tasks to stop at a common execution point. Once all tasks are waiting the execution is resumed for all tasks.

Functions

static function create(num_tasks: Integer): Barrier
Creates a new barrier for given number of tasks.
function wait()
function wait(marker: Dynamic)
Waits at the barrier until all tasks do the same then continues. It can optionally compare a marker value to detect that the tasks are waiting at the same execution point.