NeoPZ
|
namespace tht means "ThreadTools" More...
Functions | |
void | InitializeCriticalSection (pz_critical_section_t &cs) |
Critical sections. More... | |
void | DeleteCriticalSection (pz_critical_section_t &cs) |
void | EnterCriticalSection (pz_critical_section_t &cs) |
void | LeaveCriticalSection (pz_critical_section_t &cs) |
void | InitializeMutex (pz_mutex_t &m) |
Mutexes. More... | |
void | DeleteMutex (pz_mutex_t &m) |
void | MutexLock (pz_mutex_t &m) |
void | MutexUnlock (pz_mutex_t &m) |
int | InitializeSemaphore (pz_semaphore_t &s) |
Semaforos. More... | |
void | DeleteSemaphore (pz_semaphore_t &s) |
void | SemaphorePost (pz_semaphore_t &s) |
void | SemaphoreWait (pz_semaphore_t &s) |
void | CreateThread (pz_thread_t &thread, void *(*function)(void *param), void *data) |
Threads. More... | |
void | ThreadWaitFor (pz_thread_t &thread) |
namespace tht means "ThreadTools"
void tht::CreateThread | ( | pz_thread_t & | thread, |
void *(*)(void *param) | function, | ||
void * | data | ||
) |
Threads.
Definition at line 204 of file TPZThreadTools.cpp.
References DebugStop, and test::res.
Referenced by TPZFront< TVar >::STensorProductMTData::STensorProductMTData().
void tht::DeleteCriticalSection | ( | pz_critical_section_t & | cs | ) |
Definition at line 24 of file TPZThreadTools.cpp.
Referenced by TPZFront< TVar >::STensorProductMTData::~STensorProductMTData().
void tht::DeleteMutex | ( | pz_mutex_t & | m | ) |
Definition at line 88 of file TPZThreadTools.cpp.
void tht::DeleteSemaphore | ( | pz_semaphore_t & | s | ) |
Definition at line 156 of file TPZThreadTools.cpp.
Referenced by TPZFront< TVar >::STensorProductMTData::~STensorProductMTData().
void tht::EnterCriticalSection | ( | pz_critical_section_t & | cs | ) |
Definition at line 38 of file TPZThreadTools.cpp.
Referenced by TPZStructMatrixGC::ThreadData::ThreadWork(), TPZStructMatrixOT::ThreadData::ThreadWork(), TPZStructMatrixGC::ThreadData::ThreadWorkResidual(), TPZStructMatrixOT::ThreadData::ThreadWorkResidual(), and TPZFront< TVar >::STensorProductMTData::WorkDone().
void tht::InitializeCriticalSection | ( | pz_critical_section_t & | cs | ) |
Critical sections.
Definition at line 10 of file TPZThreadTools.cpp.
Referenced by TPZFront< TVar >::STensorProductMTData::STensorProductMTData().
void tht::InitializeMutex | ( | pz_mutex_t & | m | ) |
int tht::InitializeSemaphore | ( | pz_semaphore_t & | s | ) |
Semaforos.
Definition at line 129 of file TPZThreadTools.cpp.
References DebugStop.
Referenced by TPZFront< TVar >::STensorProductMTData::STensorProductMTData().
void tht::LeaveCriticalSection | ( | pz_critical_section_t & | cs | ) |
Definition at line 52 of file TPZThreadTools.cpp.
Referenced by TPZStructMatrixGC::ThreadData::ThreadWork(), TPZStructMatrixOT::ThreadData::ThreadWork(), TPZStructMatrixGC::ThreadData::ThreadWorkResidual(), TPZStructMatrixOT::ThreadData::ThreadWorkResidual(), and TPZFront< TVar >::STensorProductMTData::WorkDone().
void tht::MutexLock | ( | pz_mutex_t & | m | ) |
Definition at line 101 of file TPZThreadTools.cpp.
void tht::MutexUnlock | ( | pz_mutex_t & | m | ) |
Definition at line 114 of file TPZThreadTools.cpp.
void tht::SemaphorePost | ( | pz_semaphore_t & | s | ) |
Definition at line 171 of file TPZThreadTools.cpp.
References TPZSemaphore::Post().
Referenced by TPZFront< TVar >::STensorProductMTData::Run(), TPZFront< TVar >::STensorProductMTData::WorkDone(), and TPZFront< TVar >::STensorProductMTData::~STensorProductMTData().
void tht::SemaphoreWait | ( | pz_semaphore_t & | s | ) |
Definition at line 187 of file TPZThreadTools.cpp.
References TPZSemaphore::Wait().
Referenced by TPZFront< TVar >::STensorProductMTData::Run(), TPZFrontSym< TVar >::TensorProductIJ(), and TPZFrontNonSym< TVar >::TensorProductIJ().
void tht::ThreadWaitFor | ( | pz_thread_t & | thread | ) |
Definition at line 221 of file TPZThreadTools.cpp.
Referenced by TPZFront< TVar >::STensorProductMTData::~STensorProductMTData().