Skip to main content

MthrInquire

BoardSupported
Host SystemPartial
V4L2Partial
Clarity UHDPartial
Concord PoEPartial
GenTLPartial
GevIQPartial
GigE VisionPartial
IndioPartial
Iris GTXPartial
Radient eV-CLYes
Rapixo CLYes
Rapixo CoFYes
Rapixo CXPYes
USB3 VisionPartial

Inquire about an Aurora Imaging Library thread context, event, or mutex setting.

Syntax

AIL_INT MthrInquire(
AIL_ID ThreadEventOrMutexId, //in
AIL_INT64 InquireType, //in
void * UserVarPtr //out
)

Description

This function inquires about the specified Aurora Imaging Library thread context, event setting, or mutex setting.

Parameters

ThreadEventOrMutexId (in, AIL_ID)

Specifies the identifier of a user-allocated Aurora Imaging Library 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

ValueDescription
M_DEFAULTSpecifies the default Aurora Imaging Library thread context identifier associated with the current Host thread.
Event identifierSpecifies the identifier of a user-allocated Aurora Imaging Library event (MthrAlloc).
Mutex identifierSpecifies the identifier of a user-allocated Aurora Imaging Library mutex (MthrAlloc).
System identifierSpecifies the identifier of a valid system identifier (MsysAlloc).

When the parameter is set to the Aurora Imaging Library identifier of a system, the function inquires about the current thread on the particular system. | | Thread context identifier | Specifies the identifier of a user-allocated Aurora Imaging Library thread context (MthrAlloc). |

InquireType (in, AIL_INT64)

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.

UserVarPtr *(out, void)

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.

Parameter Associations

For thread contexts

The following InquireType settings can be specified to inquire about Aurora Imaging Library thread contexts.


M_ACCELERATOR

Inquires whether the thread uses hardware acceleration.

ValueDescription
M_DISABLESpecifies not to use hardware acceleration.
M_ENABLE (default)Specifies to use hardware acceleration.

M_DMA_COPY_MODE

Board availability: Radient eV-CL, Rapixo CL, Rapixo CXP, Rapixo CoF

Inquires the synchronization mode for copy operations when they are driven by your imaging board DMA controller.

ValueDescription
M_DEFAULT
M_ASYNCHRONOUSSpecifies that when possible, control will be returned to the application immediately after a copy operation is launched.
M_SYNCHRONOUS (default)Specifies that the execution of a copy operation must be completed before returning control to the application.

M_THREAD_MODE

Inquires the thread's execution mode.

ValueDescription
M_DEFAULT
M_ASYNCHRONOUS (default)Specifies that the thread will execute in asynchronous mode, if possible.
M_SYNCHRONOUSSpecifies that the thread will execute in synchronous mode.

M_THREAD_PRIORITY

Inquires the priority setting of the thread.

ValueDescription
M_ABOVE_NORMALSpecifies that the thread is above normal priority.
M_BELOW_NORMALSpecifies that the thread is below normal priority.
M_IDLESpecifies that the thread is idle.
M_LOWESTSpecifies that the thread is of the lowest priority.
M_NORMAL (default)Specifies that the thread is of normal priority.
M_TIME_CRITICALSpecifies that the thread is time critical.

For Aurora Imaging Library events

The following InquireType settings can be specified to inquire about Aurora Imaging Library events.


M_EVENT_MODE

Inquires the reset mode of the event.

ValueDescription
M_AUTO_RESETSpecifies that the event is reset automatically.
M_MANUAL_RESETSpecifies that the event is reset manually.

M_EVENT_STATE

Inquires the state of the event.

ValueDescription
M_NOT_SIGNALEDSpecifies the not-signaled state.
M_SIGNALEDSpecifies the signaled state.

For mutexes

The following InquireType settings can be specified to inquire about Aurora Imaging Library mutexes.


M_LOCK_TRY

Inquires whether the specified Aurora Imaging Library mutex is locked by the current thread.

ValueDescription
M_NOSpecifies that the current thread has not locked the specified mutex.
M_YESSpecifies that the current thread has locked the specified mutex.

Return Value

Type: AIL_INT

The returned value is the requested information, cast to an AIL_INT. If the requested information does not fit into an AIL_INT, this function will return M_NULLor truncate the information.

Copyright © 2026 Zebra Technologies.