chsvlib
chsv helper source code

◆ set_parallel_mode()

bool set_parallel_mode ( bool  fParallel = true)
protected

For matrices with dynamic parallelism sets a mode of a matrix parallel execution. The function is thread safe.

Parameters
fParallelSpecifies whether the matrix operations should be performed in parallel mode or not.
Returns
A previous state of the flag.

The function is thread-safe and non-blocking. All operations being executed at the moment of the call will ignore the change by the call. Only operations which will be executed after the call will be affected by it.

The function is not defined for matrices with static parallelism policy, i.e. for those matrices whose policies of parallel execution are set to matrix_always_sequential or matrix_always_parallel.