NeoPZ
|
.. . Sub structure More...
#include <tpzdohrmatrix.h>
Public Member Functions | |
TPZDohrThreadMultList (const TPZFMatrix< TVar > &x, TVar alpha, TPZAutoPointer< TPZDohrAssembly< TVar > > assembly, TPZAutoPointer< TPZDohrAssembleList< TVar > > &assemblestruct) | |
~TPZDohrThreadMultList () | |
void | AddItem (TPZDohrThreadMultData< TSubStruct > &data) |
Interface to add items in a thread safe way. More... | |
TPZDohrThreadMultData< TSubStruct > | PopItem () |
Interface to pop an item in a thread safe way. More... | |
Static Public Member Functions | |
static void * | ThreadWork (void *voidptr) |
The procedure which executes the lengthy process. More... | |
Public Attributes | |
const TPZFMatrix< TVar > * | fInput |
The vector with which we will multiply. More... | |
TVar | fAlpha |
Scalar multiplication factor. More... | |
pthread_mutex_t | fAccessLock |
Mutex which will enable the access protection of the list. More... | |
TPZAutoPointer< TPZDohrAssembly< TVar > > | fAssembly |
The data structure which defines the assemble destinations. More... | |
std::list< TPZDohrThreadMultData< TSubStruct > > | fWork |
The list of data objects which need to treated by the threads. More... | |
TPZAutoPointer< TPZDohrAssembleList< TVar > > | fAssemblyStructure |
The local contribution to the v2 vector. More... | |
.. . Sub structure
Definition at line 202 of file tpzdohrmatrix.h.
|
inline |
Definition at line 217 of file tpzdohrmatrix.h.
References PZ_PTHREAD_MUTEX_INIT.
|
inline |
Definition at line 222 of file tpzdohrmatrix.h.
References PZ_PTHREAD_MUTEX_DESTROY.
|
inline |
Interface to add items in a thread safe way.
Definition at line 230 of file tpzdohrmatrix.h.
References PZ_PTHREAD_MUTEX_LOCK, and PZ_PTHREAD_MUTEX_UNLOCK.
|
inline |
Interface to pop an item in a thread safe way.
Definition at line 237 of file tpzdohrmatrix.h.
References PZ_PTHREAD_MUTEX_LOCK, and PZ_PTHREAD_MUTEX_UNLOCK.
Referenced by TPZDohrThreadMultList< TVar, TSubStruct >::ThreadWork().
|
static |
The procedure which executes the lengthy process.
Definition at line 285 of file tpzdohrmatrix.cpp.
References TPZMatrix< TVar >::Cols(), TPZDohrThreadMultList< TVar, TSubStruct >::fAlpha, TPZDohrThreadMultList< TVar, TSubStruct >::fAssembly, TPZDohrThreadMultList< TVar, TSubStruct >::fAssemblyStructure, TPZDohrThreadMultList< TVar, TSubStruct >::fInput, TPZDohrThreadMultData< TSubStruct >::fisub, TPZDohrThreadMultData< TSubStruct >::fSub, TPZDohrThreadMultData< TSubStruct >::IsValid(), TPZDohrThreadMultList< TVar, TSubStruct >::PopItem(), and TPZMatrix< TVar >::Rows().
pthread_mutex_t TPZDohrThreadMultList< TVar, TSubStruct >::fAccessLock |
Mutex which will enable the access protection of the list.
Definition at line 209 of file tpzdohrmatrix.h.
TVar TPZDohrThreadMultList< TVar, TSubStruct >::fAlpha |
Scalar multiplication factor.
Definition at line 207 of file tpzdohrmatrix.h.
Referenced by TPZDohrThreadMultList< TVar, TSubStruct >::ThreadWork().
TPZAutoPointer<TPZDohrAssembly<TVar> > TPZDohrThreadMultList< TVar, TSubStruct >::fAssembly |
The data structure which defines the assemble destinations.
Definition at line 211 of file tpzdohrmatrix.h.
Referenced by TPZDohrThreadMultList< TVar, TSubStruct >::ThreadWork().
TPZAutoPointer<TPZDohrAssembleList<TVar> > TPZDohrThreadMultList< TVar, TSubStruct >::fAssemblyStructure |
The local contribution to the v2 vector.
Definition at line 215 of file tpzdohrmatrix.h.
Referenced by TPZDohrThreadMultList< TVar, TSubStruct >::ThreadWork().
const TPZFMatrix<TVar>* TPZDohrThreadMultList< TVar, TSubStruct >::fInput |
The vector with which we will multiply.
Definition at line 205 of file tpzdohrmatrix.h.
Referenced by TPZDohrThreadMultList< TVar, TSubStruct >::ThreadWork().
std::list<TPZDohrThreadMultData<TSubStruct> > TPZDohrThreadMultList< TVar, TSubStruct >::fWork |
The list of data objects which need to treated by the threads.
Definition at line 213 of file tpzdohrmatrix.h.