Typedefs | Functions
workerpool.h File Reference
#include "zarray.h"
Include dependency graph for workerpool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct workerpool workerpool_t
 

Functions

void workerpool_add_task (workerpool_t *wp, void(*f)(void *p), void *p)
 
workerpool_tworkerpool_create (int nthreads)
 
void workerpool_destroy (workerpool_t *wp)
 
int workerpool_get_nprocs ()
 
int workerpool_get_nthreads (workerpool_t *wp)
 
void workerpool_run (workerpool_t *wp)
 
void workerpool_run_single (workerpool_t *wp)
 

Typedef Documentation

◆ workerpool_t

typedef struct workerpool workerpool_t

Definition at line 32 of file workerpool.h.

Function Documentation

◆ workerpool_add_task()

void workerpool_add_task ( workerpool_t wp,
void(*)(void *p)  f,
void *  p 
)

Definition at line 161 of file workerpool.c.

◆ workerpool_create()

workerpool_t* workerpool_create ( int  nthreads)

Definition at line 101 of file workerpool.c.

◆ workerpool_destroy()

void workerpool_destroy ( workerpool_t wp)

Definition at line 129 of file workerpool.c.

◆ workerpool_get_nprocs()

int workerpool_get_nprocs ( )

Definition at line 206 of file workerpool.c.

◆ workerpool_get_nthreads()

int workerpool_get_nthreads ( workerpool_t wp)

Definition at line 156 of file workerpool.c.

◆ workerpool_run()

void workerpool_run ( workerpool_t wp)

Definition at line 182 of file workerpool.c.

◆ workerpool_run_single()

void workerpool_run_single ( workerpool_t wp)

Definition at line 170 of file workerpool.c.



apriltag
Author(s): Edwin Olson , Max Krogius
autogenerated on Mon Jun 26 2023 02:26:35