12 fAssembleIndexes(assembly), fOutput(&output)
30 fWork.push_back(assembleItem);
42 result = *
fWork.begin();
#define PZ_PTHREAD_MUTEX_UNLOCK(mutex, fn)
Assembling using Dohrmann algorithm. Sub structure.
TPZAutoPointer< TPZDohrAssembly< TVar > > fAssembleIndexes
Assembly indexes.
std::list< TPZAutoPointer< TPZDohrAssembleItem< TVar > > > fWork
List of objects needed to be assembled.
Contains the TPZDohrAssembleItem and TPZDohrAssembleList structs to assembling using Dohrman algorith...
TPZDohrAssembleList(int numitems, TPZFMatrix< TVar > &output, TPZAutoPointer< TPZDohrAssembly< TVar > > assembly)
Constructor indicating the number of items that will be assembled and the target matrix.
#define PZ_PTHREAD_MUTEX_LOCK(mutex, fn)
void AddItem(TPZAutoPointer< TPZDohrAssembleItem< TVar > > assembleItem)
Add an item to the list in a thread safe way.
static void * Assemble(void *voidptr)
Procedure which performs the assembly process.
TPZSemaphore fSemaphore
Semaphore (to wake up assembly thread)
To assembling one item using Dohrmann algorithm. Sub structure.
List of items to assembling using Dohrmann algorithm.
#define PZ_PTHREAD_MUTEX_DESTROY(mutex, fn)
Full matrix class. Matrix.
TPZAutoPointer< TPZDohrAssembleItem< TVar > > PopItem()
Remove an item from the list.
~TPZDohrAssembleList()
destructor
int fNumItems
The number of items that will be assembled before returning.
pthread_mutex_t fAssemblyLock
This is the mutex which controls the assembly.
TPZFMatrix< TVar > * fOutput
Target Matrix.
pthread_mutex_t fListAccessLock
This is the mutex which controls the access to the list.
#define PZ_PTHREAD_MUTEX_INIT(mutex, attr, fn)
This class implements a reference counter mechanism to administer a dynamically allocated object...