Galois::Runtime::ThreadPool Class Reference

#include <ThreadPool.h>

Inheritance diagram for Galois::Runtime::ThreadPool:
anonymous_namespace{ThreadPool_pthread.cpp}::ThreadPool_pthread

List of all members.

Public Member Functions

virtual ~ThreadPool ()
virtual void run (RunCommand *begin, RunCommand *end, unsigned num)=0
 execute work on all threads preWork and postWork are executed only on the master thread
unsigned getMaxThreads () const
 return the number of threads supported by the thread pool on the current machine

Protected Member Functions

 ThreadPool (unsigned m)

Protected Attributes

unsigned maxThreads

Constructor & Destructor Documentation

Galois::Runtime::ThreadPool::ThreadPool ( unsigned  m  )  [inline, protected]
virtual Galois::Runtime::ThreadPool::~ThreadPool (  )  [inline, virtual]

Member Function Documentation

unsigned Galois::Runtime::ThreadPool::getMaxThreads (  )  const [inline]

return the number of threads supported by the thread pool on the current machine

virtual void Galois::Runtime::ThreadPool::run ( RunCommand begin,
RunCommand end,
unsigned  num 
) [pure virtual]

execute work on all threads preWork and postWork are executed only on the master thread


Member Data Documentation


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

Generated on 2 Nov 2013 for Galois by  doxygen 1.6.1