File dp_parallel.h¶
FileList > doppler > dp_parallel.h
Go to the source code of this file
#include "doppler/clib_common.h"#include "doppler/dp_thread.h"#include <stdatomic.h>#include <stddef.h>#include <stdlib.h>
Classes¶
| Type | Name |
|---|---|
| struct | dp_pf_shared_t |
| struct | dp_pool_t |
Public Functions¶
| Type | Name |
|---|---|
| DP_THREAD_FN (dp_pf_worker, arg) |
|
| DP_THREAD_FN (dp_pool_worker, arg) |
Public Static Functions¶
| Type | Name |
|---|---|
| void | dp_parallel_for (size_t n, void(*)(size_t, void *) body, void * ctx, int max_threads) |
| dp_pool_t * | dp_pool_create (int max_threads) |
| void | dp_pool_destroy (dp_pool_t * p) |
| void | dp_pool_run (dp_pool_t * p, size_t n, void(*)(size_t, void *) body, void * ctx) |
| int | dp_pool_threads (const dp_pool_t * p) |
Public Functions Documentation¶
function DP_THREAD_FN¶
function DP_THREAD_FN¶
Public Static Functions Documentation¶
function dp_parallel_for¶
static inline void dp_parallel_for (
size_t n,
void(*)(size_t, void *) body,
void * ctx,
int max_threads
)
function dp_pool_create¶
function dp_pool_destroy¶
function dp_pool_run¶
static inline void dp_pool_run (
dp_pool_t * p,
size_t n,
void(*)(size_t, void *) body,
void * ctx
)
function dp_pool_threads¶
The documentation for this class was generated from the following file native/inc/doppler/dp_parallel.h