Skip to content

MTY_ThreadPoolCreate

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Create an MTY_ThreadPool for asynchronously executing tasks.

MTY_ThreadPool *MTY_ThreadPoolCreate(
    uint32_t maxThreads
);

Parameters

maxThreads (uint32_t)

Maximum number of threads that can be simultaneously executing.

Return value

MTY_ThreadPool *

This function can not return NULL. It will call abort() on failure.

The returned MTY_ThreadPool object must be destroyed with MTY_ThreadPoolDestroy.

Platform support

Windows   macOS   Android   Linux  

See also

Module: Thread

Clone this wiki locally