TPI Namespace Reference


Detailed Description

Author:
H. Carter Edwards <hcedwar@sandia.gov>


Classes

class  LockGuard

Typedefs

typedef TPI_ThreadPool ThreadPool

Functions

int Run (void(*func)(void *, ThreadPool), void *arg, int=0)
template<class Worker>
int Run (Worker &worker, void(Worker::*method)(ThreadPool), int=0)
int Set_lock_size (int n)
int Lock (ThreadPool pool, int n)
int Trylock (ThreadPool pool, int n)
int Unlock (ThreadPool pool, int n)
int Rank (ThreadPool pool, int &rank, int &size)
int Partition (int Rank, int Size, int N, int &I_local, int &N_local)
int Init (int n)
int Finalize ()
int Size (int &number_allocated)
int Concurrency ()
double Walltime ()


Function Documentation

int TPI::Run ( void(*)(void *, ThreadPool)  func,
void *  arg,
int  = 0 
) [inline]

Run (*func)(arg,pool) on all threads.

Definition at line 146 of file TPI.hpp.

template<class Worker>
int TPI::Run ( Worker &  worker,
void(Worker::*)(ThreadPool)  method,
int  = 0 
) [inline]

Run worker.*method(pool) on all threads.

Definition at line 153 of file TPI.hpp.


Generated on Tue Jul 13 09:22:43 2010 for phdMesh by  doxygen 1.4.7