NeoPZ
Macros | Functions
pz_pthread.h File Reference
#include <pthread.h>
#include <iostream>
#include <pz_config.h>
Include dependency graph for pz_pthread.h:
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

◆ PZ_PTHREAD_COND_BROADCAST

#define PZ_PTHREAD_COND_BROADCAST (   cond,
  fn 
)

◆ PZ_PTHREAD_COND_DESTROY

#define PZ_PTHREAD_COND_DESTROY (   cond,
  fn 
)

Definition at line 124 of file pz_pthread.h.

Referenced by TPZSemaphore::~TPZSemaphore().

◆ PZ_PTHREAD_COND_INIT

#define PZ_PTHREAD_COND_INIT (   cond,
  attr,
  fn 
)

Definition at line 121 of file pz_pthread.h.

Referenced by TPZSemaphore::TPZSemaphore().

◆ PZ_PTHREAD_COND_SIGNAL

#define PZ_PTHREAD_COND_SIGNAL (   cond,
  fn 
)

◆ PZ_PTHREAD_COND_WAIT

#define PZ_PTHREAD_COND_WAIT (   cond,
  mutex,
  fn 
)

◆ PZ_PTHREAD_CREATE

#define PZ_PTHREAD_CREATE (   thread,
  attr,
  routine,
  args,
  fn 
)

◆ PZ_PTHREAD_JOIN

#define PZ_PTHREAD_JOIN (   thread,
  val,
  fn 
)

◆ PZ_PTHREAD_MUTEX_DESTROY

#define PZ_PTHREAD_MUTEX_DESTROY (   mutex,
  fn 
)

◆ PZ_PTHREAD_MUTEX_INIT

#define PZ_PTHREAD_MUTEX_INIT (   mutex,
  attr,
  fn 
)

◆ PZ_PTHREAD_MUTEX_LOCK

#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().

◆ PZ_PTHREAD_MUTEX_UNLOCK

#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().

Function Documentation

◆ pz_pthread_log_report()

void pz_pthread_log_report ( std::ostream &  o)

◆ pz_pthread_log_start()

void pz_pthread_log_start ( )

Definition at line 83 of file pz_pthread.cpp.

◆ pz_pthread_log_stop()

void pz_pthread_log_stop ( )

Definition at line 82 of file pz_pthread.cpp.