MIL_ID ThrId, | //in |
MIL_INT64 InquireType, | //in |
MIL_INT64 TypeFlag, | //in |
MIL_INT64 TypeValue, | //in |
void *ResultPtr | //out |
This function inquires about a MIL multi-core processing setting of a thread context. This function can return whether multi-core processing is used to execute the MIL functions on the specified thread. It can also return how multi-core processing is performed for the specified thread.
MthrInquireMp() always takes precedence over MappInquireMp().
Specifies the identifier of a user-allocated MIL thread context allocated using MthrAlloc().
For specifying the identifier of a
user-allocated MIL thread context
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default MIL thread context identifier associated with the current Host thread. |
||||||||||||||||||||||||||||||||||||||
MIL thread context identifier |
Specifies the identifier of a user-allocated MIL thread context. |
Specifies the type of multi-core processing setting about which to inquire.
See the Parameter associations section for possible values that can be specified.
Specifies the address in which to write the requested information.
See the Parameter associations section for possible values that can be returned.
The table below lists possible values for the InquireType parameter and possible values returned to the ResultPtr parameter.
Unless otherwise specified, the following values require that you pass the ResultPtr parameter the address of a MIL_INT.
For inquiring about general types of
thread settings
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
||||||||||||||||||||||||||||||||||||||
ResultPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_CORE_AFFINITY_MASK |
Inquires the core affinity bit-mask, which indicates the CPU cores that can be used to run the multi-core processing part of MIL functions. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
ResultPtr data type info |
Data
type: array of type MIL_UINT64 |
||||||||||||||||||||||||||||||||||||||
Non-zero initialized bit-mask array |
Specifies a bit-mask array in which each bit represents one CPU core. INFO |
||||||||||||||||||||||||||||||||||||||
Zero-initialized bit-mask |
Specifies that all CPU cores that are available to the process running your MIL application can be used (M_CORE_AFFINITY_MASK is set to M_ALL). |
||||||||||||||||||||||||||||||||||||||
M_CORE_MAX |
Inquires the maximum number of CPU cores to use to process the multi-core processing part of each MIL function on the specified thread. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. INFO |
||||||||||||||||||||||||||||||||||||||
1 <= Value <= 65535 |
Specifies the maximum number of CPU cores to use. INFO |
||||||||||||||||||||||||||||||||||||||
M_CORE_MAX_FOR_COPY |
Inquires the maximum number of CPU cores to use to process the multi-core processing part of copy type functions on the specified thread. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. INFO |
||||||||||||||||||||||||||||||||||||||
M_FOLLOW_CORE_MAX |
Specifies to use the current value of M_CORE_MAX. |
||||||||||||||||||||||||||||||||||||||
1 <= Value <= 65535 |
Specifies the maximum number of CPU cores to use. INFO |
||||||||||||||||||||||||||||||||||||||
M_CORE_NUM_EFFECTIVE |
Inquires the number of CPU cores available for executing the multi-core processing part of MIL functions on the specified thread. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value >= 1 |
Specifies the number of CPU cores available. |
||||||||||||||||||||||||||||||||||||||
M_CORE_SHARING |
Inquires whether MIL multi-core processing can use multiple logical cores per physical CPU core, when hyper-threading is enabled and supported. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. INFO |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies only one logical core per physical CPU core, if hyper-threading is enabled. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies all the logical cores of a physical CPU core, if hyper-threading is enabled. |
||||||||||||||||||||||||||||||||||||||
M_MP_PRIORITY |
Inquires the processing priority of the multi-core processing part of MIL functions. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. INFO |
||||||||||||||||||||||||||||||||||||||
M_ABOVE_NORMAL |
Specifies that the multi-core processing part of MIL functions will be executed with above normal priority. |
||||||||||||||||||||||||||||||||||||||
M_BELOW_NORMAL |
Specifies that the multi-core processing part of MIL functions will be executed with below normal priority. |
||||||||||||||||||||||||||||||||||||||
M_HIGHEST |
Specifies that the multi-core processing part of MIL functions will be executed with high priority. INFO |
||||||||||||||||||||||||||||||||||||||
M_IDLE |
Specifies that the multi-core processing part of MIL functions will be executed with idle priority. INFO |
||||||||||||||||||||||||||||||||||||||
M_LOWEST |
Specifies that the multi-core processing part of MIL functions will be executed with low priority. |
||||||||||||||||||||||||||||||||||||||
M_NORMAL |
Specifies that the multi-core processing part of MIL functions will be executed with normal priority. |
||||||||||||||||||||||||||||||||||||||
M_TIME_CRITICAL |
Specifies that the multi-core processing part of MIL functions will be executed with time critical priority. INFO |
||||||||||||||||||||||||||||||||||||||
M_MP_USE |
Inquires whether multi-core processing can be used to execute certain parts of MIL functions. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. INFO |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that multi-core processing cannot be used for MIL functions on the specified thread. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies that multi-core processing can be used for MIL functions on the specified thread. |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll, milmp.dll. |