W3cubDocs

/Nim

Module cpuload

This module implements a helper for a thread pool to determine whether creating a thread is a good idea.

Imports

winlean, os, strutils, math

Types

ThreadPoolAdvice = enum
  doNothing, doCreateThread, doShutdownThread
ThreadPoolState = object
  when defined(windows):
      prevSysKernel, prevSysUser, prevProcKernel, prevProcUser: FILETIME

  calls*: int

Procs

proc advice(s: var ThreadPoolState): ThreadPoolAdvice {...}{.raises: [], tags: [].}
"is greater" operator. This is the same as y < x.

© 2006–2018 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/cpuload.html