# std/cpuload

Theme:

- Manual
- Standard library
- Index
- Compiler docs
- Fusion docs
- devel, stable

Search:
Source Edit

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

Unstable API.

# Imports

cpuinfo, syncio

# Types

    ThreadPoolAdvice = enum
      doNothing, doCreateThread, doShutdownThread

  Source Edit

    ThreadPoolState = object
      when defined(windows):

      calls*: int

  Source Edit

# Procs

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

  Source Edit