MIL_ID ThreadEventOrMutexId, | //in |
MIL_INT64 ControlType, | //in |
MIL_DOUBLE ControlValue | //in |
This function controls a MIL thread context, MIL event, or MIL mutex setting. Most of these control type settings can be inquired using MthrInquire().
Specifies the identifier of a user-allocated MIL thread context, event, or mutex, allocated using MthrAlloc(). This parameter can also be set to the MIL identifier of a system.
For specifying the identifier of a
user-allocated MIL thread context, event, or mutex
|
|||||||||||||||||||||||||||||||||||||||
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 setting to control.
See the Parameter associations section for possible values that can be specified.
Specifies the new value to assign to the setting specified by the ControlType parameter.
See the Parameter associations section for possible values that can be specified.
The tables below list possible values for the ControlType and ControlValue parameters.
The following ControlType and corresponding ControlValue settings can be specified to control MIL thread contexts:
For thread contexts
|
|||||||||||||||||||||||||||||||||||||||
ControlType | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_ACCELERATOR |
Sets whether the thread uses hardware acceleration. INQ (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. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_BUS_MASTER_COPY_MODE |
Sets the synchronization mode for copy operations when they are driven by your imaging board (bus master). INQ (more details...) |
† | g | h | i | j | k | l | m | n | p | q | r | ||||||||||||||||||||||||||
M_DEFAULT |
Same as M_SYNCHRONOUS. |
† | g | h | i | j | k | l | m | n | 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 | i | j | k | l | m | n | 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 | i | j | k | l | m | n | p | q | r | ||||||||||||||||||||||||||
M_NODE_SELECT |
Sets the MIL system where MIL functions will run in the thread, when running multiple systems in DMIL. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_DEFAULT |
Specifies that the MIL system on which the MIL functions will run is selected automatically. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, which forces all MIL functions to run on this system. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_THREAD_COMMANDS_ABORT |
Cancels all calls queued in the thread. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_DEFAULT |
Implements the default behavior. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_THREAD_MODE |
Sets the execution mode of the thread. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Note that the specified synchronization mode does not affect copy operations. Use M_BUS_MASTER_COPY_MODE to specify the required mode for copying. |
† | g | h | l | m | ||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ASYNCHRONOUS. |
† | 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. (more details...) |
† | 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. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_THREAD_PRIORITY |
Sets the priority status of the thread. INQ (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. (more details...) |
† | 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. (more details...) |
† | 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. (more details...) |
† | 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. (more details...) |
† | 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. (more details...) |
† | 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. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_THREAD_SELECT |
Sets the selectable thread, specified by the ThreadEventOrMutexId parameter, as the destination for subsequent MIL functions. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_DEFAULT |
Implements the default behavior. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s |
The following ControlType and corresponding ControlValue setting can be specified to control MIL events:
For controlling MIL events
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_EVENT_SET |
Sets an event to the specified state. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NOT_SIGNALED |
Sets the event to the not-signaled state. |
||||||||||||||||||||||||||||||||||||||
M_SIGNALED |
Sets the event to the signaled state. |
The following ControlType and corresponding ControlValue setting can be specified to control a MIL mutex:
For controlling a MIL mutex
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_LOCK |
Forces the current thread to wait until the specified MIL mutex is available and then locks it. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default behavior. |
||||||||||||||||||||||||||||||||||||||
M_LOCK_TRY |
Locks the specified MIL mutex if it is currently unlocked. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Implements the default behavior. |
||||||||||||||||||||||||||||||||||||||
M_UNLOCK |
Unlocks the specified mutex. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Implements the default behavior. |
void MthrControlDouble
(MIL_ID
ThreadEventOrMutexId, MIL_INT64 ControlType,
MIL_DOUBLE ControlValue)
Parameters
ThreadEventOrMutexId See ThreadEventOrMutexId of the main function for a description. ControlType See ControlType of the main function for a description. ControlValue See ControlValue of the main function for a description. |
Parameters
ThreadEventOrMutexId See ThreadEventOrMutexId of the main function for a description. ControlType See ControlType of the main function for a description. ControlValue See ControlValue of the main function for a description. |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |