Click or drag to resize

IMcResourceManagerReserveThreads Method

This function reserves numberTreads threads of the given type and increment the thread properties accordingly.

Namespace:  MediaCy.IQL.Engine
Assembly:  MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
Syntax
VB
Function ReserveThreads ( 
	Type As mcThreadType,
	<OutAttribute> ByRef numberThreads As Integer,
	Description As String,
	Flags As mcReserveThreadsFlags
) As IntPtr

Parameters

Type
Type: MediaCy.IQL.EnginemcThreadType
numberThreads
Type: SystemInt32
The number of threads to reserve.
Description
Type: SystemString
Flags
Type: MediaCy.IQL.EnginemcReserveThreadsFlags

Return Value

Type: IntPtr
A handle which will be used to release the threads.
Remarks
On success a positive threadHandle is returned which can be used later to free these threads. When flags is set to mcrtNoFailure, the property ThreadsMissing is set to the difference between numberThreads and what is allowed and a PropertyChanged event is fired potentially thread owners to release them. Then the function succeeds and the maximum between what is now allowed and what is requested is returned in numberThreads.
See Also