phdMesh Version of the Day
Classes | Typedefs | Functions
TPI Namespace Reference

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 ()

Detailed Description

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

Function Documentation

int TPI::Run ( void(*)(void *, ThreadPool)  func,
void *  arg,
int  n = 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  n = 0 
) [inline]

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

Definition at line 153 of file TPI.hpp.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator