VAPOR3 3.9.4
Public Member Functions | Static Public Member Functions | List of all members
Wasp::EasyThreads Class Reference

#include <EasyThreads.h>

Inheritance diagram for Wasp::EasyThreads:
Wasp::MyBase VAPoR::WaveCodecIO

Public Member Functions

 EasyThreads (int nthreads)
 
 ~EasyThreads ()
 
int ParRun (void *(*start)(void *), std::vector< void * > arg)
 
int ParRun (void *(*start)(void *), void **arg)
 
int Barrier ()
 
int MutexLock ()
 
int MutexUnlock ()
 
int GetNumThreads () const
 
- Public Member Functions inherited from Wasp::MyBase
 MyBase ()
 
const string & getClassName () const
 

Static Public Member Functions

static void Decompose (int n, int size, int rank, int *offset, int *length)
 
static int NProc ()
 
- Static Public Member Functions inherited from Wasp::MyBase
static void SetErrMsg (const char *format,...)
 Record a formatted error message.
 
static void SetErrMsg (int errcode, const char *format,...)
 Record a formatted error message and an error code.
 
static const char * GetErrMsg ()
 
static void SetErrCode (int err_code)
 Record an error code.
 
static int GetErrCode ()
 Retrieve the current error code.
 
static void SetErrMsgCB (ErrMsgCB_T cb)
 
static ErrMsgCB_T GetErrMsgCB ()
 
static void SetErrMsgFilePtr (FILE *fp)
 
static const FILE * SetErrMsgFilePtr ()
 
static void SetDiagMsg (const char *format,...)
 Record a formatted diagnostic message.
 
static const char * GetDiagMsg ()
 
static void SetDiagMsgCB (DiagMsgCB_T cb)
 
static DiagMsgCB_T GetDiagMsgCB ()
 
static void SetDiagMsgFilePtr (FILE *fp)
 
static bool EnableErrMsg (bool enable)
 
static bool GetEnableErrMsg ()
 

Additional Inherited Members

- Public Types inherited from Wasp::MyBase
typedef void(* ErrMsgCB_T) (const char *msg, int err_code)
 
typedef void(* DiagMsgCB_T) (const char *msg)
 
- Static Public Attributes inherited from Wasp::MyBase
static char * ErrMsg
 
static int ErrCode
 
static int ErrMsgSize
 
static FILE * ErrMsgFilePtr
 
static ErrMsgCB_T ErrMsgCB
 
static char * DiagMsg
 
static int DiagMsgSize
 
static FILE * DiagMsgFilePtr
 
static DiagMsgCB_T DiagMsgCB
 
static bool Enabled
 
- Protected Member Functions inherited from Wasp::MyBase
void SetClassName (const string &name)
 

Detailed Description

Definition at line 17 of file EasyThreads.h.

Constructor & Destructor Documentation

◆ EasyThreads()

Wasp::EasyThreads::EasyThreads ( int  nthreads)

◆ ~EasyThreads()

Wasp::EasyThreads::~EasyThreads ( )

Member Function Documentation

◆ Barrier()

int Wasp::EasyThreads::Barrier ( )

◆ Decompose()

static void Wasp::EasyThreads::Decompose ( int  n,
int  size,
int  rank,
int *  offset,
int *  length 
)
static

◆ GetNumThreads()

int Wasp::EasyThreads::GetNumThreads ( ) const
inline

Definition at line 28 of file EasyThreads.h.

◆ MutexLock()

int Wasp::EasyThreads::MutexLock ( )

◆ MutexUnlock()

int Wasp::EasyThreads::MutexUnlock ( )

◆ NProc()

static int Wasp::EasyThreads::NProc ( )
static

◆ ParRun() [1/2]

int Wasp::EasyThreads::ParRun ( void *(*)(void *)  start,
std::vector< void * >  arg 
)

◆ ParRun() [2/2]

int Wasp::EasyThreads::ParRun ( void *(*)(void *)  start,
void **  arg 
)

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