OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
Workers Class Referencefinal

#include <workers.h>

Public Member Functions

 Workers ()
 
 ~Workers ()
 

Static Public Member Functions

static void setThreadName (const char *threadName)
 
template<class T , class F >
static void parallelFor (T *b, T *e, const F &func)
 
template<class T , class F >
static void parallelFor (std::vector< T > &data, const F &func)
 
template<class T , class F >
static void parallelTasks (std::vector< T > &data, const F &func)
 
template<class F >
static void parallelTasks (size_t taskCount, const F &func)
 
static uint8_t maxThreads ()
 

Detailed Description

Definition at line 12 of file workers.h.

Constructor & Destructor Documentation

◆ Workers()

Workers::Workers ( )

Definition at line 74 of file workers.cpp.

◆ ~Workers()

Workers::~Workers ( )

Definition at line 84 of file workers.cpp.

Member Function Documentation

◆ maxThreads()

uint8_t Workers::maxThreads ( )
static

Definition at line 98 of file workers.cpp.

◆ parallelFor() [1/2]

template<class T , class F >
static void Workers::parallelFor ( std::vector< T > &  data,
const F &  func 
)
inlinestatic

Definition at line 25 of file workers.h.

◆ parallelFor() [2/2]

template<class T , class F >
static void Workers::parallelFor ( T *  b,
T *  e,
const F &  func 
)
inlinestatic

Definition at line 20 of file workers.h.

◆ parallelTasks() [1/2]

template<class F >
static void Workers::parallelTasks ( size_t  taskCount,
const F &  func 
)
inlinestatic

Definition at line 35 of file workers.h.

◆ parallelTasks() [2/2]

template<class T , class F >
static void Workers::parallelTasks ( std::vector< T > &  data,
const F &  func 
)
inlinestatic

Definition at line 30 of file workers.h.

◆ setThreadName()

void Workers::setThreadName ( const char *  threadName)
static

Definition at line 66 of file workers.cpp.


The documentation for this class was generated from the following files: