Skip to content

File dp_parallel.h

FileList > inc > dp_parallel.h

Go to the source code of this file

  • #include "clib_common.h"
  • #include <pthread.h>
  • #include <stdatomic.h>
  • #include <stddef.h>
  • #include <stdlib.h>
  • #include <unistd.h>

Classes

Type Name
struct dp_pf_shared_t
struct dp_pool_t

Public Static Functions

Type Name
void dp_parallel_for (size_t n, void(*)(size_t, void *) body, void * ctx, int max_threads)
void * dp_pf_worker (void * arg)
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)
void * dp_pool_worker (void * arg)

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_pf_worker

static void * dp_pf_worker (
    void * arg
) 

function dp_pool_create

static inline dp_pool_t * dp_pool_create (
    int max_threads
) 

function dp_pool_destroy

static inline void dp_pool_destroy (
    dp_pool_t * p
) 

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

static inline int dp_pool_threads (
    const dp_pool_t * p
) 

function dp_pool_worker

static void * dp_pool_worker (
    void * arg
) 


The documentation for this class was generated from the following file native/inc/dp_parallel.h