Platforms to show: All Mac Windows Linux Cross-Platform

Back to WinThreadPoolMBS class.

WinThreadPoolMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Windows MBS Win Plugin 21.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The internal handle of the thread pool.

(Read and Write property)

WinThreadPoolMBS.LastError as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Windows MBS Win Plugin 21.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The last error code.

(Read and Write property)

WinThreadPoolMBS.StackCommit as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Windows MBS Win Plugin 21.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The stack commit size.

Default is 4 KB for the default stack grow size.
The rate the stack grows.
Should be in page size multiplies, e.g. 4096.

Sets the stack reserve and commit sizes for new threads in the specified thread pool. Stack reserve and commit sizes for existing threads are not changed.
(Read and Write property)

WinThreadPoolMBS.StackReserve as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Windows MBS Win Plugin 21.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The stack reservie size.
Example
static pool as WinThreadPoolMBS // property or global

// increase stack size from default
pool = New WinThreadPoolMBS
pool.StackReserve = 2048*1024

Default is 1 MB for the default stack size.
The rate the stack grows.
Should be in page size multiplies, e.g. 4096.

Sets the stack reserve and commit sizes for new threads in the specified thread pool. Stack reserve and commit sizes for existing threads are not changed.
(Read and Write property)

WinThreadPoolMBS.ThreadMaximum as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Windows MBS Win Plugin 21.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The upper limit for thread count.
Example
static pool as WinThreadPoolMBS // property or global

pool = New WinThreadPoolMBS
pool.StackReserve = 2048*1024
pool.ThreadMaximum = 4

Default for Windows is 500, but it may be much lower in practice as it's relative to the number of CPU cores and jobs.
(Read and Write property)

WinThreadPoolMBS.ThreadMinimum as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Windows MBS Win Plugin 21.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The lower limit for thread count.

Default 0 to allow having no thread.
(Read and Write property)

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...