Back to FabImage Library website

You are here: Start » Function Reference » System » Configuration » ControlParallelComputing

ControlParallelComputing


Header: FIL.h
Namespace: fil
Module: FoundationLite

Enables or disables filters multithreading parallelization.

Syntax

C++
C#
 
void fil::ControlParallelComputing
(
	bool inIsEnabled,
	ftl::Optional<int> inThreadCount,
	ftl::Optional<int> inBlockTime,
	int& outThreadCount
)

Parameters

Name Type Range Default Description
Input value
inIsEnabled bool True When 'true' parallel computing is used.
Input value
inThreadCount Optional<int> 1 - 32 NIL Requested number of threads.
Input value
inBlockTime Optional<int> NIL Sets the number of milliseconds that a thread should wait, after completing the execution of a parallel region, before sleeping.
Output value
outThreadCount int& Actually available number of threads.