2 #ifndef TPZThreadToolsH 3 #define TPZThreadToolsH 11 #ifdef WINDOWS_THREADS 13 #define NOMINMAX // Preventing the redefinition of min and max as macros 17 #ifdef EMBARCADERO_THREADS 19 #include "SyncObjs.hpp" 21 #include "TSWXEmbarcaderoThread.h" 31 #ifdef WINDOWS_THREADS 37 #ifdef EMBARCADERO_THREADS Contains declaration of the TPZSemaphore class which implements semaphore to threads.
void DeleteSemaphore(pz_semaphore_t &s)
Implements semaphore to threads. Utility.
int InitializeSemaphore(pz_semaphore_t &s)
Semaforos.
void MutexUnlock(pz_mutex_t &m)
void LeaveCriticalSection(pz_critical_section_t &cs)
void EnterCriticalSection(pz_critical_section_t &cs)
void CreateThread(pz_thread_t &thread, void *(*function)(void *param), void *data)
Threads.
void InitializeCriticalSection(pz_critical_section_t &cs)
Critical sections.
void ThreadWaitFor(pz_thread_t &thread)
Contains declaration of the TPZAutoPointer class which has Increment and Decrement actions are mutexe...
void MutexLock(pz_mutex_t &m)
void SemaphoreWait(pz_semaphore_t &s)
void SemaphorePost(pz_semaphore_t &s)
clarg::argString m("-m", "input matrix file name (text format)", "matrix.txt")
void DeleteMutex(pz_mutex_t &m)
namespace tht means "ThreadTools"
void InitializeMutex(pz_mutex_t &m)
Mutexes.
void DeleteCriticalSection(pz_critical_section_t &cs)
This class implements a reference counter mechanism to administer a dynamically allocated object...