Back to FabImage Library website
You are here: Start » Function Reference » System » Configuration » 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, int& outThreadCount )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inIsEnabled | bool | True | When 'true' parallel computing is used | |
![]() |
inThreadCount | Optional<int> | 1 - 32 | NIL | Requested number of threads |
![]() |
outThreadCount | int& | Actually available number of threads |
Multithreaded environment
This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.