WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
workerpool.h File Reference
#include "zarray.h"

Go to the source code of this file.

Typedefs

typedef struct workerpool workerpool_t
 

Functions

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

Typedef Documentation

◆ workerpool_t

typedef struct workerpool workerpool_t

Function Documentation

◆ workerpool_add_task()

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

◆ workerpool_create()

workerpool_t * workerpool_create ( int nthreads)

◆ workerpool_destroy()

void workerpool_destroy ( workerpool_t * wp)

◆ workerpool_get_nprocs()

int workerpool_get_nprocs ( void )

◆ workerpool_get_nthreads()

int workerpool_get_nthreads ( workerpool_t * wp)

◆ workerpool_run()

void workerpool_run ( workerpool_t * wp)

◆ workerpool_run_single()

void workerpool_run_single ( workerpool_t * wp)