![]() |
NeoPZ
|
struct para paralelizar a decomposicao da matriz More...
#include <TPZFront.h>
Public Types | |
typedef std::pair< int, STensorProductMTData *> | STensorProductThreadData |
Public Member Functions | |
int | NThreads () |
num threads More... | |
STensorProductMTData (int nthreads, TPZFront< TVar > *frontMat) | |
construtor padrao More... | |
~STensorProductMTData () | |
construtor More... | |
void | WorkDone () |
void | Run (TPZVec< TVar > &AuxVecCol, TPZVec< TVar > &AuxVecRow) |
Static Public Member Functions | |
static void * | Execute (void *data) |
destrutor More... | |
Public Attributes | |
pz_semaphore_t | fWorkDoneSem |
dados para sincronizar o thread principal More... | |
int | fWorkDoneCount |
pz_critical_section_t | fWorkDoneCS |
TPZVec< pz_semaphore_t > | fWorkSem |
semaforos para sincronizar os threads de calculo More... | |
TPZVec< pz_thread_t > | fThreads |
array de threads More... | |
TPZVec< TVar > * | fAuxVecCol |
vetores de operacao More... | |
TPZVec< TVar > * | fAuxVecRow |
TVar | fDiagonal |
valor da diagonal More... | |
TPZVec< STensorProductThreadData * > | fThreadData |
TPZFront< TVar > * | fMat |
matriz TPZFront More... | |
bool | fRunning |
struct para paralelizar a decomposicao da matriz
Definition at line 178 of file TPZFront.h.
typedef std::pair<int,STensorProductMTData * > TPZFront< TVar >::STensorProductMTData::STensorProductThreadData |
Definition at line 180 of file TPZFront.h.
|
inline |
construtor padrao
Definition at line 213 of file TPZFront.h.
References tht::CreateThread(), DebugStop, TPZFront< TVar >::STensorProductMTData::Execute(), tht::InitializeCriticalSection(), tht::InitializeSemaphore(), nthreads, and TPZVec< T >::Resize().
Referenced by TPZFront< STATE >::ProductTensorMTInitData().
|
inline |
construtor
destrutor
finalizando a execucao dos threads
desalocando objetos, exceto threads que, ao menos no embarcadero, morrem sozinhos
Definition at line 239 of file TPZFront.h.
References tht::DeleteCriticalSection(), tht::DeleteSemaphore(), TPZVec< T >::NElements(), nthreads, tht::SemaphorePost(), and tht::ThreadWaitFor().
|
inlinestatic |
destrutor
Definition at line 262 of file TPZFront.h.
References DebugStop, and TPZFront< TVar >::TensorProductIJ().
Referenced by TPZFront< TVar >::STensorProductMTData::STensorProductMTData().
|
inline |
num threads
Definition at line 202 of file TPZFront.h.
References TPZFront< TVar >::STensorProductMTData::fThreadData, and TPZVec< T >::NElements().
Referenced by TPZFront< TVar >::STensorProductMTData::Run(), TPZFrontSym< TVar >::TensorProductIJ(), TPZFrontNonSym< TVar >::TensorProductIJ(), TPZFront< STATE >::TPZFront(), and TPZFront< TVar >::STensorProductMTData::WorkDone().
|
inline |
Definition at line 280 of file TPZFront.h.
References TPZFront< TVar >::STensorProductMTData::NThreads(), tht::SemaphorePost(), and tht::SemaphoreWait().
|
inline |
Definition at line 271 of file TPZFront.h.
References tht::EnterCriticalSection(), tht::LeaveCriticalSection(), TPZFront< TVar >::STensorProductMTData::NThreads(), and tht::SemaphorePost().
Referenced by TPZFrontSym< TVar >::TensorProductIJ(), and TPZFrontNonSym< TVar >::TensorProductIJ().
vetores de operacao
Definition at line 196 of file TPZFront.h.
Referenced by TPZFrontSym< TVar >::TensorProductIJ(), and TPZFrontNonSym< TVar >::TensorProductIJ().
Definition at line 196 of file TPZFront.h.
Referenced by TPZFrontSym< TVar >::TensorProductIJ(), and TPZFrontNonSym< TVar >::TensorProductIJ().
TVar TPZFront< TVar >::STensorProductMTData::fDiagonal |
valor da diagonal
Definition at line 199 of file TPZFront.h.
Referenced by TPZFrontSym< TVar >::TensorProductIJ().
matriz TPZFront
Definition at line 208 of file TPZFront.h.
Referenced by TPZFrontSym< TVar >::TensorProductIJ().
bool TPZFront< TVar >::STensorProductMTData::fRunning |
Definition at line 210 of file TPZFront.h.
Referenced by TPZFrontSym< TVar >::TensorProductIJ(), and TPZFrontNonSym< TVar >::TensorProductIJ().
TPZVec<STensorProductThreadData*> TPZFront< TVar >::STensorProductMTData::fThreadData |
Definition at line 202 of file TPZFront.h.
Referenced by TPZFront< TVar >::STensorProductMTData::NThreads().
TPZVec< pz_thread_t > TPZFront< TVar >::STensorProductMTData::fThreads |
array de threads
Definition at line 193 of file TPZFront.h.
int TPZFront< TVar >::STensorProductMTData::fWorkDoneCount |
Definition at line 186 of file TPZFront.h.
pz_critical_section_t TPZFront< TVar >::STensorProductMTData::fWorkDoneCS |
Definition at line 187 of file TPZFront.h.
pz_semaphore_t TPZFront< TVar >::STensorProductMTData::fWorkDoneSem |
dados para sincronizar o thread principal
Definition at line 185 of file TPZFront.h.
TPZVec<pz_semaphore_t> TPZFront< TVar >::STensorProductMTData::fWorkSem |
semaforos para sincronizar os threads de calculo
Definition at line 190 of file TPZFront.h.
Referenced by TPZFrontSym< TVar >::TensorProductIJ(), and TPZFrontNonSym< TVar >::TensorProductIJ().