NeoPZ
Namespaces | Macros | Typedefs | Functions
TPZThreadTools.h File Reference
#include "pthread.h"
#include "TPZSemaphore.h"
Include dependency graph for TPZThreadTools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 tht
 namespace tht means "ThreadTools"
 

Macros

#define using_pthread
 

Typedefs

typedef pthread_mutex_t pz_critical_section_t
 
typedef pthread_mutex_t pz_mutex_t
 
typedef TPZSemaphore pz_semaphore_t
 
typedef pthread_t pz_thread_t
 

Functions

void tht::InitializeCriticalSection (pz_critical_section_t &cs)
 Critical sections. More...
 
void tht::DeleteCriticalSection (pz_critical_section_t &cs)
 
void tht::EnterCriticalSection (pz_critical_section_t &cs)
 
void tht::LeaveCriticalSection (pz_critical_section_t &cs)
 
void tht::InitializeMutex (pz_mutex_t &m)
 Mutexes. More...
 
void tht::DeleteMutex (pz_mutex_t &m)
 
void tht::MutexLock (pz_mutex_t &m)
 
void tht::MutexUnlock (pz_mutex_t &m)
 
int tht::InitializeSemaphore (pz_semaphore_t &s)
 Semaforos. More...
 
void tht::DeleteSemaphore (pz_semaphore_t &s)
 
void tht::SemaphorePost (pz_semaphore_t &s)
 
void tht::SemaphoreWait (pz_semaphore_t &s)
 
void tht::CreateThread (pz_thread_t &thread, void *(*function)(void *param), void *data)
 Threads. More...
 
void tht::ThreadWaitFor (pz_thread_t &thread)
 

Macro Definition Documentation

◆ using_pthread

#define using_pthread

Definition at line 5 of file TPZThreadTools.h.

Typedef Documentation

◆ pz_critical_section_t

typedef pthread_mutex_t pz_critical_section_t

Definition at line 26 of file TPZThreadTools.h.

◆ pz_mutex_t

typedef pthread_mutex_t pz_mutex_t

Definition at line 27 of file TPZThreadTools.h.

◆ pz_semaphore_t

Definition at line 28 of file TPZThreadTools.h.

◆ pz_thread_t

typedef pthread_t pz_thread_t

Definition at line 29 of file TPZThreadTools.h.