MIL_ID ThreadEventOrMutexId, | //in |
MIL_INT64 InquireType, | //in |
void *UserVarPtr | //out |
This function inquires about the specified MIL thread context, event setting, or mutex setting.
Specifies the identifier of a user-allocated MIL thread context, event, or mutex, allocated using MthrAlloc(). This parameter should be set to one of the following values:
For a user-allocated thread context or
event
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default MIL thread context identifier associated with the current Host thread. |
||||||||||||||||||||||||||||||||||||||
MIL event identifier |
Specifies the identifier of a user-allocated MIL event (MthrAlloc()). |
||||||||||||||||||||||||||||||||||||||
MIL mutex identifier |
Specifies the identifier of a user-allocated MIL mutex (MthrAlloc()). |
||||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies the identifier of a valid system identifier (MsysAlloc()). (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL thread context identifier |
Specifies the identifier of a user-allocated MIL thread context (MthrAlloc()). |
Specifies the type of information about which to inquire. This parameter can be set to one of the values below. See MthrControl() for more information about these values.
See the Parameter associations section for possible values that can be specified.
Specifies the address in which to write the requested information.
Since the MthrInquire() function also returns the requested information, you can set this parameter to M_NULL.
See the Parameter associations section for possible values that can be returned.
The tables below list possible values for the InquireType parameter and possible values returned to the UserVarPtr parameter.
The following InquireType settings can be specified to inquire about MIL thread contexts.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For thread contexts
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_ACCELERATOR |
Inquires whether the thread uses hardware acceleration. SET (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_DISABLE |
Specifies not to use hardware acceleration. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_ENABLE |
Specifies to use hardware acceleration. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_BUS_MASTER_COPY_MODE |
Inquires the synchronization mode for copy operations when they are driven by your imaging board (bus master). SET (more details...) |
† | g | h | j | k | l | m | p | q | r | ||||||||||||||||||||||||||||
M_ASYNCHRONOUS |
Specifies that when possible, control will be returned to the imaging board (bus master) immediately after a copy operation is launched. |
† | g | h | j | k | l | m | p | q | r | ||||||||||||||||||||||||||||
M_SYNCHRONOUS |
Specifies that the execution of a copy operation must be completed before returning control to the imaging board (bus master). |
† | g | h | j | k | l | m | p | q | r | ||||||||||||||||||||||||||||
M_THREAD_MODE |
Inquires the thread's execution mode. SET (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_ASYNCHRONOUS |
Specifies that the thread will execute in asynchronous mode, if possible. INFO |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_SYNCHRONOUS |
Specifies that the thread will execute in synchronous mode. INFO |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_THREAD_PRIORITY |
Inquires the priority setting of the thread. SET (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_ABOVE_NORMAL |
Specifies that the thread is above normal priority. INFO |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_BELOW_NORMAL |
Specifies that the thread is below normal priority. INFO |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_IDLE |
Specifies that the thread is idle. INFO |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_LOWEST |
Specifies that the thread is of the lowest priority. INFO |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_NORMAL |
Specifies that the thread is of normal priority. INFO |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_TIME_CRITICAL |
Specifies that the thread is time critical. INFO |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s |
The following InquireType settings can be specified to inquire about MIL events.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For MIL events
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_EVENT_MODE |
Inquires the reset mode of the event. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_AUTO_RESET |
Specifies that the event is reset automatically. INFO |
||||||||||||||||||||||||||||||||||||||
M_MANUAL_RESET |
Specifies that the event is reset manually. INFO |
||||||||||||||||||||||||||||||||||||||
M_EVENT_STATE |
Inquires the state of the event. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NOT_SIGNALED |
Specifies the not-signaled state. |
||||||||||||||||||||||||||||||||||||||
M_SIGNALED |
Specifies the signaled state. |
The following InquireType settings can be specified to inquire about MIL mutexes.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For mutexes
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_LOCK_TRY |
Inquires whether the specified MIL mutex is locked by the current thread. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NO |
Specifies that the current thread has not locked the specified mutex. |
||||||||||||||||||||||||||||||||||||||
M_YES |
Specifies that the current thread has locked the specified mutex. |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |