NeoPZ
|
#include <pthread.h>
#include <iostream>
#include <pz_config.h>
Go to the source code of this file.
Macros | |
#define | PZ_PTHREAD_CREATE(thread, attr, routine, args, fn) |
#define | PZ_PTHREAD_JOIN(thread, val, fn) |
#define | PZ_PTHREAD_MUTEX_INIT(mutex, attr, fn) |
#define | PZ_PTHREAD_MUTEX_DESTROY(mutex, fn) |
#define | PZ_PTHREAD_MUTEX_LOCK(mutex, fn) |
#define | PZ_PTHREAD_MUTEX_UNLOCK(mutex, fn) |
#define | PZ_PTHREAD_COND_INIT(cond, attr, fn) |
#define | PZ_PTHREAD_COND_DESTROY(cond, fn) |
#define | PZ_PTHREAD_COND_WAIT(cond, mutex, fn) |
#define | PZ_PTHREAD_COND_SIGNAL(cond, fn) |
#define | PZ_PTHREAD_COND_BROADCAST(cond, fn) |
Functions | |
void | pz_pthread_log_start () |
void | pz_pthread_log_stop () |
void | pz_pthread_log_report (std::ostream &o) |
#define PZ_PTHREAD_COND_BROADCAST | ( | cond, | |
fn | |||
) |
#define PZ_PTHREAD_COND_DESTROY | ( | cond, | |
fn | |||
) |
Definition at line 124 of file pz_pthread.h.
Referenced by TPZSemaphore::~TPZSemaphore().
#define PZ_PTHREAD_COND_INIT | ( | cond, | |
attr, | |||
fn | |||
) |
Definition at line 121 of file pz_pthread.h.
Referenced by TPZSemaphore::TPZSemaphore().
#define PZ_PTHREAD_COND_SIGNAL | ( | cond, | |
fn | |||
) |
Definition at line 130 of file pz_pthread.h.
Referenced by TPZParFrontMatrix< TVar, store, front >::AddKel(), TPZParFrontMatrix< TVar, store, front >::FinishWriting(), TPZSkylParMatrix< TVar >::ParallelCholesky(), TPZSkylParMatrix< TVar >::ParallelLDLt(), TPZSkylParMatrix< TVar >::ParallelLDLt2(), and TPZSemaphore::Post().
Definition at line 127 of file pz_pthread.h.
Referenced by TPZParFrontStructMatrix< front >::ElementAssemble(), TPZParFrontStructMatrix< front >::GlobalAssemble(), TPZSkylParMatrix< TVar >::ParallelCholesky(), TPZSkylParMatrix< TVar >::ParallelLDLt(), TPZSkylParMatrix< TVar >::ParallelLDLt2(), TPZSemaphore::Wait(), and TPZParFrontMatrix< TVar, store, front >::WriteFile().
#define PZ_PTHREAD_CREATE | ( | thread, | |
attr, | |||
routine, | |||
args, | |||
fn | |||
) |
Definition at line 31 of file pz_pthread.h.
Referenced by TPZDohrStructMatrix::Assemble(), TPZParFrontStructMatrix< front >::Assemble(), TPZSkylParMatrix< TVar >::Decompose_Cholesky(), TPZSkylParMatrix< TVar >::Decompose_LDLt(), synchronized_threads_t::execute_n_threads(), main(), TPZDohrPrecond< TVar, TSubStruct >::MultAdd(), TPZFYsmpMatrix< TVar >::MultAdd(), TPZDohrMatrix< TVar, TSubStruct >::MultAdd(), TPZDohrPrecond< TVar, TSubStruct >::MultAddTBB(), TPZDohrMatrix< TVar, TSubStruct >::MultAddTBB(), TPZPairStructMatrix::MultiThread_Assemble(), TPZStructMatrixGC::MultiThread_Assemble(), TPZStructMatrixCS::MultiThread_Assemble(), TPZStructMatrixOT::MultiThread_Assemble(), TPZStructMatrixOR::MultiThread_Assemble(), and TPZAnalysis::PostProcessErrorParallel().
#define PZ_PTHREAD_JOIN | ( | thread, | |
val, | |||
fn | |||
) |
Definition at line 34 of file pz_pthread.h.
Referenced by TPZDohrStructMatrix::Assemble(), TPZParFrontStructMatrix< front >::Assemble(), TPZSkylParMatrix< TVar >::Decompose_Cholesky(), TPZSkylParMatrix< TVar >::Decompose_LDLt(), synchronized_threads_t::execute_n_threads(), main(), TPZDohrPrecond< TVar, TSubStruct >::MultAdd(), TPZFYsmpMatrix< TVar >::MultAdd(), TPZDohrMatrix< TVar, TSubStruct >::MultAdd(), TPZDohrPrecond< TVar, TSubStruct >::MultAddTBB(), TPZDohrMatrix< TVar, TSubStruct >::MultAddTBB(), TPZPairStructMatrix::MultiThread_Assemble(), TPZStructMatrixGC::MultiThread_Assemble(), TPZStructMatrixCS::MultiThread_Assemble(), TPZStructMatrixOT::MultiThread_Assemble(), TPZStructMatrixOR::MultiThread_Assemble(), and TPZAnalysis::PostProcessErrorParallel().
#define PZ_PTHREAD_MUTEX_DESTROY | ( | mutex, | |
fn | |||
) |
Definition at line 73 of file pz_pthread.h.
Referenced by TPZStructMatrixOT::MultiThread_Assemble(), TPZStructMatrixOR::ThreadData::~ThreadData(), TPZPairStructMatrix::ThreadData::~ThreadData(), TPZStructMatrixCS::ThreadData::~ThreadData(), TPZStructMatrixGC::ThreadData::~ThreadData(), TPZAnalysis::ThreadData::~ThreadData(), ThreadDohrmanAssemblyList< T >::~ThreadDohrmanAssemblyList(), TPZDohrAssembleList< TVar >::~TPZDohrAssembleList(), TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::~TPZDohrPrecondV2SubDataList(), TPZDohrStructMatrix::~TPZDohrStructMatrix(), TPZDohrThreadMultList< TVar, TSubStruct >::~TPZDohrThreadMultList(), and TPZSemaphore::~TPZSemaphore().
#define PZ_PTHREAD_MUTEX_INIT | ( | mutex, | |
attr, | |||
fn | |||
) |
Definition at line 70 of file pz_pthread.h.
Referenced by TPZStructMatrixOT::MultiThread_Assemble(), TPZStructMatrixOR::ThreadData::ThreadData(), TPZPairStructMatrix::ThreadData::ThreadData(), TPZStructMatrixCS::ThreadData::ThreadData(), TPZStructMatrixGC::ThreadData::ThreadData(), TPZAnalysis::ThreadData::ThreadData(), ThreadDohrmanAssemblyList< T >::ThreadDohrmanAssemblyList(), TPZDohrAssembleList< TVar >::TPZDohrAssembleList(), TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::TPZDohrPrecondV2SubDataList(), TPZDohrStructMatrix::TPZDohrStructMatrix(), TPZDohrThreadMultList< TVar, TSubStruct >::TPZDohrThreadMultList(), and TPZSemaphore::TPZSemaphore().
#define PZ_PTHREAD_MUTEX_LOCK | ( | mutex, | |
fn | |||
) |
Definition at line 76 of file pz_pthread.h.
Referenced by TPZDohrAssembleList< TVar >::AddItem(), TPZDohrThreadMultList< TVar, TSubStruct >::AddItem(), TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::AddItem(), TPZParFrontMatrix< TVar, store, front >::AddKel(), ThreadDohrmanAssemblyList< T >::Append(), TPZDohrAssembleList< TVar >::Assemble(), AssembleMatrices(), TPZSkylMatrix< TVar >::AutoFill(), TPZStructMatrixOR::ThreadData::ComputedElementMatrix(), TPZPairStructMatrix::ThreadData::ComputedElementMatrix(), TPZAutoPointer< T >::TPZReference< TPZDohrSubstructCondense< TVar > >::Decrease(), TPZParFrontStructMatrix< front >::ElementAssemble(), TPZParFrontStructMatrix< front >::GlobalAssemble(), TPZAutoPointer< T >::TPZReference< TPZDohrSubstructCondense< TVar > >::Increment(), TPZStructMatrixOR::ThreadData::NextElement(), TPZPairStructMatrix::ThreadData::NextElement(), TPZStructMatrixCS::ThreadData::NextElement(), ThreadDohrmanAssemblyList< T >::NextObject(), TPZSkylParMatrix< TVar >::ParallelCholesky(), TPZSkylParMatrix< TVar >::ParallelLDLt(), TPZSkylParMatrix< TVar >::ParallelLDLt2(), TPZDohrAssembleList< TVar >::PopItem(), TPZDohrThreadMultList< TVar, TSubStruct >::PopItem(), TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::PopItem(), TPZSemaphore::Post(), TPZSloan::Resequence(), TPZStructMatrixOR::ThreadData::ThreadAssembly(), TPZPairStructMatrix::ThreadData::ThreadAssembly1(), TPZPairStructMatrix::ThreadData::ThreadAssembly2(), TPZStructMatrixOR::ThreadData::ThreadWork(), TPZStructMatrixCS::ThreadData::ThreadWork(), TPZAnalysis::ThreadData::ThreadWork(), TPZSemaphore::Wait(), and TPZParFrontMatrix< TVar, store, front >::WriteFile().
#define PZ_PTHREAD_MUTEX_UNLOCK | ( | mutex, | |
fn | |||
) |
Definition at line 79 of file pz_pthread.h.
Referenced by TPZDohrAssembleList< TVar >::AddItem(), TPZDohrThreadMultList< TVar, TSubStruct >::AddItem(), TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::AddItem(), TPZParFrontMatrix< TVar, store, front >::AddKel(), ThreadDohrmanAssemblyList< T >::Append(), TPZDohrAssembleList< TVar >::Assemble(), AssembleMatrices(), TPZSkylMatrix< TVar >::AutoFill(), TPZStructMatrixOR::ThreadData::ComputedElementMatrix(), TPZPairStructMatrix::ThreadData::ComputedElementMatrix(), TPZAutoPointer< T >::TPZReference< TPZDohrSubstructCondense< TVar > >::Decrease(), TPZParFrontStructMatrix< front >::ElementAssemble(), TPZParFrontStructMatrix< front >::GlobalAssemble(), TPZAutoPointer< T >::TPZReference< TPZDohrSubstructCondense< TVar > >::Increment(), TPZStructMatrixOR::ThreadData::NextElement(), TPZPairStructMatrix::ThreadData::NextElement(), TPZStructMatrixCS::ThreadData::NextElement(), ThreadDohrmanAssemblyList< T >::NextObject(), TPZSkylParMatrix< TVar >::ParallelCholesky(), TPZSkylParMatrix< TVar >::ParallelLDLt(), TPZSkylParMatrix< TVar >::ParallelLDLt2(), TPZDohrAssembleList< TVar >::PopItem(), TPZDohrThreadMultList< TVar, TSubStruct >::PopItem(), TPZDohrPrecondV2SubDataList< TVar, TSubStruct >::PopItem(), TPZSemaphore::Post(), TPZSloan::Resequence(), TPZStructMatrixOR::ThreadData::ThreadAssembly(), TPZPairStructMatrix::ThreadData::ThreadAssembly1(), TPZPairStructMatrix::ThreadData::ThreadAssembly2(), TPZStructMatrixOR::ThreadData::ThreadWork(), TPZStructMatrixCS::ThreadData::ThreadWork(), TPZAnalysis::ThreadData::ThreadWork(), TPZSemaphore::Wait(), and TPZParFrontMatrix< TVar, store, front >::WriteFile().
void pz_pthread_log_report | ( | std::ostream & | o | ) |
Definition at line 84 of file pz_pthread.cpp.
References cond, test::fn, pz_pthread_mutex_t::lock(), mutex, and pz_pthread_mutex_t::unlock().
void pz_pthread_log_start | ( | ) |
Definition at line 83 of file pz_pthread.cpp.
void pz_pthread_log_stop | ( | ) |
Definition at line 82 of file pz_pthread.cpp.