cpuload

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

Unstable API.

Imports

cpuinfo

Types

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

  calls*: int
Source Edit

Procs

proc advice(s: var ThreadPoolState): ThreadPoolAdvice {...}{.raises: [], tags: [].}
Source Edit

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