ec_thread_pool_defer_spawn

March 26, 2020 Contributors

Name

ec_thread_pool_defer_spawn — set a thread pool to defer thread creation

Synopsis

#include "ec_thread_pool.h"

| void **ec_thread_pool_defer_spawn** ( | jobclass, |   |
|   | defer); |   |

int <var class="pdparam">jobclass</var>;
int <var class="pdparam">defer</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

set a thread pool to defer thread creation.

This is useful for creating a pool to which you will post jobs to build up a queue, and which you wish to process only after you have finished building the queue.

Parameters

jobclass

the thread pool id

defer

if 1, set to defer mode, else re-enables the pool.