MADNESS  0.10.1
Public Member Functions | Private Attributes | List of all members
Peasant Class Reference
Inheritance diagram for Peasant:
Inheritance graph
[legend]
Collaboration diagram for Peasant:
Collaboration graph
[legend]

Public Member Functions

 Peasant (ConcurrentHashMap< int, double > &a)
 
void run ()
 Function to be executed by the thread. More...
 
- Public Member Functions inherited from madness::ThreadBase
 ThreadBase ()
 Default constructor. More...
 
virtual ~ThreadBase ()
 
int cancel () const
 Cancel this thread. More...
 
const pthread_t & get_id () const
 Get the pthread id of this thread (if running). More...
 
int get_pool_thread_index () const
 Get index of this thread in ThreadPool. More...
 
void start ()
 Start the thread running. More...
 

Private Attributes

ConcurrentHashMap< int, double > & a
 

Additional Inherited Members

- Static Public Member Functions inherited from madness::ThreadBase
static void exit ()
 A thread can call this to terminate its execution. More...
 
static int num_hw_processors ()
 Get number of actual hardware processors. More...
 
static ThreadBasethis_thread ()
 

Constructor & Destructor Documentation

◆ Peasant()

Peasant::Peasant ( ConcurrentHashMap< int, double > &  a)
inline

Member Function Documentation

◆ run()

void Peasant::run ( )
inlinevirtual

Function to be executed by the thread.

Override this to do work.

Implements madness::ThreadBase.

References a, MADNESS_EXCEPTION, and ndone.

Member Data Documentation

◆ a

ConcurrentHashMap<int,double>& Peasant::a
private

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