This module implements a helper for a thread pool to determine whether creating a thread is a good idea.
Unstable API.
ThreadPoolAdvice = enum doNothing, doCreateThread, doShutdownThread
ThreadPoolState = object when defined(windows): calls*: int
proc advice(s: var ThreadPoolState): ThreadPoolAdvice {....raises: [], tags: [], forbids: [].}
© 2006–2024 Andreas RumpfLicensed under the MIT License. https://nim-lang.org/docs/cpuload.html