concurrency

struct concurrency

Maximum number of simultaneous calls of one registered algorithm.

Passed when registering an algorithm (transform, fold, unfold, observe, predicate, provide or output); every registration function defaults to serial.

The limit applies to a single node only. It does not order the calls (data cells may arrive in any order, even for a serial node), does not tie the calls to one thread, and does not exclude other nodes, even nodes bound to the same object.

Public Members

std::size_t value

Maximum number of simultaneous calls; use concurrency{n} for a limit of n. A value of 0 means unlimited.

Public Static Attributes

static concurrency const unlimited

No limit beyond the number of threads available to the job.

static concurrency const serial

At most one call at a time.