ippGetNumThreads

Returns the number of existing threads in the multithreading environment.

Syntax

IppStatus ippGetNumThreads(int* pNumThr);

Parameters

pNumThr

Pointer to the number of threads.

Description

The function ippGetNumThreads is declared in the ippcore.h file. This function returns the number of OMP threads specified by the user previously. If it has not been specified, the function returns the initial number of threads that depends on the number of logical processors.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error condition when the pMhz pointer is NULL.

ippStsNoOperation

Indicates that there is no such operation in the static version of the library.

Submit feedback on this help topic

Copyright © 2000 - 2010, Intel Corporation. All rights reserved.