CParallel Class Reference

List of all members.

Public Member Functions

 CParallel ()
 CParallel (const CParallel &orig)
 ~CParallel ()
int32_t get_num_cpus () const
void set_num_threads (int32_t n)
int32_t get_num_threads () const

Protected Attributes

int32_t num_threads


Detailed Description

Class Parallel provides helper functions for multithreading. For example it can be used to determine the number of CPU cores in your computer and is the place where you define the number of CPUs that shall be used in computations.

Definition at line 30 of file Parallel.h.


Constructor & Destructor Documentation

CParallel::CParallel (  ) 

Definition at line 13 of file Parallel.cpp.

CParallel::CParallel ( const CParallel orig  ) 

Definition at line 17 of file Parallel.cpp.

CParallel::~CParallel (  ) 

Definition at line 22 of file Parallel.cpp.


Member Function Documentation

int32_t CParallel::get_num_cpus (  )  const

Definition at line 37 of file Parallel.h.

int32_t CParallel::get_num_threads (  )  const

Definition at line 58 of file Parallel.h.

void CParallel::set_num_threads ( int32_t  n  ) 

Definition at line 50 of file Parallel.h.


Member Data Documentation

int32_t CParallel::num_threads [protected]

Definition at line 64 of file Parallel.h.


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

SHOGUN Machine Learning Toolbox - Documentation