Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kThreadPool kThreadPool_Default | ( |  | ) |

Returns the default thread pool.

The default thread pool is constructed with a suitable number of threads to make effective use of underlying processor hardware. Because the default thread pool is a global resource, callbacks that perform I/O or that could otherwise block for a long duration should be avoided, in order to ensure that pool threads remain avaiable to perform useful work.

The default thread pool is automatically created on first use (lazy initialization).

This method is thread-safe.

Returns
  Default thread pool.