| Customize Help
| Save Settings

MthrInquire



Function Map
Synopsis
Inquire about a MIL thread context, event, or mutex setting.
Syntax
MIL_INT MthrInquire(
MIL_ID ThreadEventOrMutexId, //in
MIL_INT64 InquireType, //in
void *UserVarPtr //out
)
Description

This function inquires about the specified MIL thread context, event setting, or mutex setting.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameters
ThreadEventOrMutexId

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:

function map For a user-allocated thread context or event
Click to summarizeValue Description
Click to summarize M_DEFAULT

Specifies the default MIL thread context identifier associated with the current Host thread.

Click to summarize MIL event identifier

Specifies the identifier of a user-allocated MIL event (MthrAlloc()).

Click to summarize MIL mutex identifier

Specifies the identifier of a user-allocated MIL mutex (MthrAlloc()).

Click to summarize MIL system identifier

Specifies the identifier of a valid system identifier (MsysAlloc()).

When the parameter is set to the MIL identifier of a system, the function inquires about the current thread on the particular system.

(summarize)
Click to summarize MIL thread context identifier

Specifies the identifier of a user-allocated MIL thread context (MthrAlloc()).

InquireType

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.

UserVarPtr
Accepts the address of one of the following (see the Parameter associations section for specifics on which is expected):
  • MIL_INT

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.

function map For thread contexts
Click to summarizeInquireType Description MIL system-specific
tooltip (‡)
UserVarPtr
- Possible values returned
Click to summarize M_ACCELERATOR

Inquires whether the thread uses hardware acceleration. SET

(summarize)
a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Click to summarize M_DISABLE

Specifies not to use hardware acceleration.

a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Click to summarize M_ENABLE

Specifies to use hardware acceleration.

a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Click to summarize M_BUS_MASTER_COPY_MODE

Inquires the synchronization mode for copy operations when they are driven by your imaging board (bus master). SET

(summarize)
g h j k
M10
l m p r
U27
y
U75
aa
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
g h j k
M10
l m p r
U27
y
U75
aa
Click to summarize 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
M10
l m p r
U27
y
U75
aa
Click to summarize 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
M10
l m p r
U27
y
U75
aa
Click to summarize M_THREAD_MODE

Inquires the thread's execution mode. SET

(summarize)
a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Click to summarize M_ASYNCHRONOUS

Specifies that the thread will execute in asynchronous mode, if possible. INFO

a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Click to summarize M_SYNCHRONOUS

Specifies that the thread will execute in synchronous mode. INFO

a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Click to summarize M_THREAD_PRIORITY

Inquires the priority setting of the thread. SET

(summarize)
a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Click to summarize M_ABOVE_NORMAL

Specifies that the thread is above normal priority. INFO

a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Click to summarize M_BELOW_NORMAL

Specifies that the thread is below normal priority. INFO

a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Click to summarize M_IDLE

Specifies that the thread is idle. INFO

a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Click to summarize M_LOWEST

Specifies that the thread is of the lowest priority. INFO

a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Click to summarize M_NORMAL

Specifies that the thread is of normal priority. INFO

a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa
Click to summarize M_TIME_CRITICAL

Specifies that the thread is time critical. INFO

a c
M10
g h i j k
M10
l m o p r
U27
t
U28
u
U36
v w
U53
y
U75
z aa

The following InquireType settings can be specified to inquire about MIL events.

function map For MIL events
Click to summarizeInquireType Description
UserVarPtr
- Possible values returned
Click to summarize M_EVENT_MODE

Inquires the reset mode of the event. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_AUTO_RESET

Specifies that the event is reset automatically. INFO

Click to summarize M_MANUAL_RESET

Specifies that the event is reset manually. INFO

Click to summarize M_EVENT_STATE

Inquires the state of the event. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_NOT_SIGNALED

Specifies the not-signaled state.

Click to summarize M_SIGNALED

Specifies the signaled state.

The following InquireType settings can be specified to inquire about MIL mutexes.

function map For mutexes
Click to summarizeInquireType Description
UserVarPtr
- Possible values returned
Click to summarize M_LOCK_TRY

Inquires whether the specified MIL mutex is locked by the current thread.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_NO

Specifies that the current thread has not locked the specified mutex.

Click to summarize M_YES

Specifies that the current thread has locked the specified mutex.

Return value
The returned value is the requested information, cast to a MIL_INT. If the requested information does not fit into a MIL_INT, this function will return M_NULL or truncate the information.
Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.
DEFAULT ACCELERATOR DISABLE ENABLE BUS MASTER COPY MODE ASYNCHRONOUS SYNCHRONOUS THREAD MODE ASYNCHRONOUS SYNCHRONOUS THREAD PRIORITY ABOVE NORMAL BELOW NORMAL IDLE LOWEST NORMAL TIME CRITICAL EVENT MODE AUTO RESET MANUAL RESET EVENT STATE NOT SIGNALED SIGNALED LOCK TRY NO YES